Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add daemon CI job for Windows ARM64 #7258

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 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 @@ -127,6 +134,8 @@ jobs:
run: git submodule update --init --depth=1

- name: Install Protoc
# NOTE: ARM runner already has protoc
if: ${{ matrix.config.arch != 'arm64' }}
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -136,6 +145,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 +156,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
Loading