build-mullvad-windows #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-mullvad-windows | |
on: [workflow_dispatch, workflow_call] | |
env: | |
CARGO_TERM_COLOR: always | |
CPP_BUILD_MODES: Debug | |
# https://github.com/actions/runner-images/issues/1794#issuecomment-707217728 | |
jobs: | |
build: | |
runs-on: "custom-windows-11" | |
steps: | |
- name: Cleanup working directory | |
shell: bash | |
run: | | |
ls -la ./ | |
rm -rf ./* || true | |
rm -rf ./.??* || true | |
ls -la ./ | |
- name: Checkout mullvad libs for Windows | |
uses: actions/checkout@v4 | |
with: | |
repository: nymtech/nym-vpn-mullvad-libs | |
ref: nym_patches | |
path: "nym-vpn-mullvad-libs" | |
submodules: true | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@v2 | |
# This step is prone to compiler error that are simply blanks, this action auto retries a few times in case of error | |
- name: Build/Move winfw from mullvad | |
uses: nick-fields/retry@v3 | |
with: | |
shell: bash | |
timeout_seconds: 300 | |
max_attempts: 3 | |
retry_on: error | |
command: | | |
cd ${GITHUB_WORKSPACE}/nym-vpn-mullvad-libs | |
./build-windows-modules.sh | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: winfw.dll | |
path: | | |
${{ github.workspace }}/nym-vpn-mullvad-libs/windows/winfw/bin/x64-${{ env.CPP_BUILD_MODES }}/winfw.dll | |
retention-days: 10 | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: winfw.lib | |
path: | | |
${{ github.workspace }}/nym-vpn-mullvad-libs/windows/winfw/bin/x64-${{ env.CPP_BUILD_MODES }}/winfw.lib | |
retention-days: 10 |