Skip to content

Commit 9a7b311

Browse files
authored
Merge pull request #42 from antaalt/ci-add-arm
ci: Add native build for arm windows / linux
2 parents 7ce70b7 + d9af5ef commit 9a7b311

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ jobs:
5252
# WASI has its own build step below.
5353
- os: windows-latest
5454
target: x86_64-pc-windows-msvc
55-
executable: shader-language-server.exe
55+
- os: windows-11-arm
56+
target: aarch64-pc-windows-msvc
5657
- os: ubuntu-latest
5758
target: x86_64-unknown-linux-gnu
58-
executable: shader-language-server
59+
- os: ubuntu-24.04-arm
60+
target: aarch64-unknown-linux-gnu
5961

6062
steps:
6163
- uses: actions/checkout@v4
@@ -66,7 +68,9 @@ jobs:
6668
- name: Build desktop executable # Build all package on supported os.
6769
run: cargo build --release --verbose --target ${{ matrix.target }} # Specify target to build into target
6870
- name: Copy desktop executable
69-
run: mkdir -p ./bin/ && cp ./target/${{ matrix.target }}/release/${{ matrix.executable }} ./bin/${{ matrix.executable }}
71+
run: mkdir -p ./bin/ && cp ./target/${{ matrix.target }}/release/${{ env.executable }} ./bin/${{ env.executable }}
72+
env:
73+
executable: shader-language-server${{ runner.os == 'Windows' && '.exe' || '' }}
7074
# TODO: Add debug symbols for supported target to bin folder.
7175
- name: Upload artifact
7276
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)