Skip to content

Commit

Permalink
Merge pull request #173 from benjeffery/auto_tarball
Browse files Browse the repository at this point in the history
Add release tarball action
  • Loading branch information
mergify[bot] authored Nov 30, 2021
2 parents 28a7479 + c9073c5 commit 21e2835
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
command: |
sudo apt-get update
sudo apt-get install -y ninja-build libcunit1-dev valgrind clang doxygen python3-pip
sudo apt-get install ninja-build libcunit1-dev valgrind clang doxygen
# Install meson as root so we can install to the system below.
sudo pip install meson
pip install numpy==1.18.5
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
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/*
1 change: 1 addition & 0 deletions c/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.0.1
1 change: 1 addition & 0 deletions c/meson.build
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',
Expand Down

0 comments on commit 21e2835

Please sign in to comment.