-
Notifications
You must be signed in to change notification settings - Fork 20
57 lines (48 loc) · 1.89 KB
/
ci-build-windows.yaml
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
name: CI build Windows
on:
pull_request: {}
push:
branches:
- main
jobs:
eBPF-Programs-Build:
strategy:
matrix:
configurations: ['Debug', 'Release']
runs-on: windows-2019
env:
BUILD_CONFIGURATION: ${{matrix.configurations}}
BUILD_PLATFORM: x64
steps:
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415
with:
submodules: "recursive"
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@becb80cf9a036187bb1e07e74eb64e25850d757a
- name: Install tools
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
choco install -y llvm
echo "C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
cmake -B build
cmake --build build -j $(nproc) --config ${{env.BUILD_CONFIGURATION}}
- name: Create artifact directory
run: |
mkdir upload_artifact_xdp_root
mkdir upload_artifact_ratelimiting
copy D:\a\eBPF-Package-Repository\eBPF-Package-Repository\xdp-root\build\xdp_root_kern.o upload_artifact_xdp_root
copy D:\a\eBPF-Package-Repository\eBPF-Package-Repository\build\xdp-root\${{env.BUILD_CONFIGURATION}}\xdp_root.exe upload_artifact_xdp_root
copy D:\a\eBPF-Package-Repository\eBPF-Package-Repository\ratelimiting\build\ratelimiting_kern.o upload_artifact_ratelimiting
- name: Upload xdp-root
uses: actions/upload-artifact@v3
with:
name: xdp-root-windows-${{env.BUILD_CONFIGURATION}}-artifact
path: upload_artifact_xdp_root
- name: Upload ratelimiting
uses: actions/upload-artifact@v3
with:
name: ratelimiting-windows-${{env.BUILD_CONFIGURATION}}-artifact
path: upload_artifact_ratelimiting