summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release-ninja-binaries.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/release-ninja-binaries.yml b/.github/workflows/release-ninja-binaries.yml
index e46be17..03cd72e 100644
--- a/.github/workflows/release-ninja-binaries.yml
+++ b/.github/workflows/release-ninja-binaries.yml
@@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v1
-
+
# Install OS specific dependencies
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
@@ -32,18 +32,18 @@ jobs:
- name: Install Windows dependencies
if: matrix.os == 'windows-latest'
run: choco install re2c
-
+
- name: Build ninja
shell: bash
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --parallel --config Release --target ninja
-
+
- name: Strip Linux binary
if: matrix.os == 'ubuntu-latest'
run: cd build && strip ninja
-
+
- name: Create ninja archive
shell: bash
env:
@@ -51,14 +51,14 @@ jobs:
run: |
mkdir artifact
7z a artifact/${ZIP_NAME}.zip $(find ./build -name ninja -or -name ninja.exe)
-
+
# 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/upload-release-asset@v1.0.1