aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Evsyukov <[email protected]>2020-02-24 10:28:56 +0300
committerDenis Evsyukov <[email protected]>2020-02-24 10:28:56 +0300
commitadff373dfd0398f078520a162c511791258f87e1 (patch)
treeeaf56fd4d8fc82ee7474b877e8ac0bf5105f6046
parent[+] finish %) (diff)
downloadt-adff373dfd0398f078520a162c511791258f87e1.tar.xz
t-adff373dfd0398f078520a162c511791258f87e1.zip
[+] github action
-rw-r--r--.github/workflows/publish-binaries.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/publish-binaries.yml b/.github/workflows/publish-binaries.yml
new file mode 100644
index 0000000..5cb7898
--- /dev/null
+++ b/.github/workflows/publish-binaries.yml
@@ -0,0 +1,42 @@
+name: Release Ninja Binaries
+
+on:
+ push:
+ release:
+ types: published
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest, macOS-latest, windows-latest]
+ include:
+ - os: ubuntu-latest
+ zip_name: ninja-linux
+ - os: macOS-latest
+ zip_name: ninja-mac
+ - os: windows-latest
+ zip_name: ninja-win
+
+ steps:
+ - uses: actions/checkout@v1
+
+ - name: Build
+ shell: bash
+ run: |
+ mkdir build && cd build
+ cmake -DCMAKE_BUILD_TYPE=Release ..
+ cmake --build . --parallel --config Release --target t
+ # Upload ninja binary archive as an artifact
+ - name: Upload artifact
+ uses: actions/upload-artifact@v1
+ with:
+ name: ninja-binary-archives
+ path: artifact
+
+ - name: Upload release asset
+ if: github.event.action == 'published'
+ uses: actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file