Skip to content

Commit

Permalink
Add build job for Windows Arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Oct 31, 2022
1 parent 91f99ab commit 9e9f64f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9e9f64f

Please sign in to comment.