diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2022-11-09 11:39:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 11:39:58 +0100 |
commit | 53346f18fd4c90fa6f07a2b40e5c788ffe46e738 (patch) | |
tree | 26beeea392fd54ef15eab75520b739d66cdd7a9a | |
parent | 91f99ab60747e76eca5222c74531268a5d55acf1 (diff) | |
parent | 9e9f64ffc3f5474976dbfd7cc82635a7e3204e3f (diff) | |
download | ninja-53346f18fd4c90fa6f07a2b40e5c788ffe46e738.tar.gz |
Merge pull request #2208 from ThadHouse/winarmci
Add build job for Windows Arm64
-rw-r--r-- | .github/workflows/windows.yml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e4fe7bd..5ef1494 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -54,3 +54,43 @@ jobs: asset_path: ./artifact/ninja-win.zip asset_name: ninja-win.zip asset_content_type: application/zip + + build-arm64: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: choco install re2c + + - name: Build ninja + shell: bash + run: | + cmake -Bbuild -A arm64 + cmake --build build --parallel --config Debug + cmake --build build --parallel --config Release + + - name: Create ninja archive + shell: bash + run: | + mkdir artifact + 7z a artifact/ninja-winarm64.zip ./build/Release/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 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./artifact/ninja-winarm64.zip + asset_name: ninja-winarm64.zip + asset_content_type: application/zip |