Skip to content

Commit

Permalink
Add daemon CI job for Windows ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Dec 2, 2024
1 parent 12f120d commit 358176a
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/daemon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,14 @@ jobs:
run: ./ci/check-rust.sh

build-windows:
runs-on: windows-latest
strategy:
matrix:
config:
- os: windows-latest
arch: x64
- os: [self-hosted, ARM64, Windows]
arch: arm64
runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -136,6 +143,7 @@ jobs:
shell: bash
run: |
hash="$(git grep --recurse-submodules --cached -l '' -- './windows/' \
| grep -v '\.exe$\|\.md$' \
| xargs sha1sum \
| sha1sum \
| cut -d" " -f1)"
Expand All @@ -146,13 +154,22 @@ jobs:
id: cache-windows-modules
with:
path: |
./windows/*/bin/x64-*/*.dll
./windows/*/bin/x64-*/*.lib
!./windows/*/bin/x64-*/libcommon.lib
!./windows/*/bin/x64-*/libshared.lib
!./windows/*/bin/x64-*/libwfp.lib
./windows/*/bin/${{ matrix.config.arch }}-*/*.dll
./windows/*/bin/${{ matrix.config.arch }}-*/*.lib
!./windows/*/bin/${{ matrix.config.arch }}-*/libcommon.lib
!./windows/*/bin/${{ matrix.config.arch }}-*/libshared.lib
!./windows/*/bin/${{ matrix.config.arch }}-*/libwfp.lib
key: windows-modules-${{ steps.windows-modules-hash.outputs.hash }}

# The x64 toolchain is needed to build talpid-openvpn-plugin
# TODO: Remove once fixed
- name: Install Rust x64 target
if: ${{ matrix.config.arch == 'arm64' }}
uses: actions-rs/[email protected]
with:
toolchain: stable
target: x86_64-pc-windows-msvc

- name: Install Rust
uses: actions-rs/[email protected]
with:
Expand Down

0 comments on commit 358176a

Please sign in to comment.