-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from benjeffery/auto_tarball
Add release tarball action
- Loading branch information
Showing
4 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Release | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies and set path | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y ninja-build libcunit1-dev python3-pip | ||
# Install meson as root so we can install to the system below. | ||
sudo pip install meson | ||
- name: Build tarball | ||
run: | | ||
cd c | ||
rm test-data | ||
cp -r ../test-data . | ||
meson . ../build-gcc | ||
cd ../build-gcc | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Mr Robot" | ||
git add -A | ||
git commit -m "dummy commit to make meson add in the symlinked directory" | ||
meson dist | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') && contains(github.event.ref, 'C_') | ||
with: | ||
draft: True | ||
files: build-gcc/meson-dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
project('kastore', ['c', 'cpp'], | ||
version: files('VERSION'), | ||
default_options: [ | ||
'c_std=c99', | ||
'cpp_std=c++11', | ||
|