-
Notifications
You must be signed in to change notification settings - Fork 8
72 lines (62 loc) · 1.99 KB
/
build-mullvad-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: build-mullvad-windows
on:
workflow_dispatch:
workflow_call:
outputs:
CPP_BUILD_MODES:
value: ${{ jobs.build.outputs.CPP_BUILD_MODES }}
env:
CARGO_TERM_COLOR: always
CPP_BUILD_MODES: Release
# https://github.com/actions/runner-images/issues/1794#issuecomment-707217728
jobs:
build:
runs-on: "custom-windows-11"
outputs:
CPP_BUILD_MODES: ${{ env.CPP_BUILD_MODES }}
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