forked from WireGuard/wireguard-go
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.08 KB
/
build.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
name: build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
include:
- arch: x86_64
target_os: linux
- arch: i686
target_os: linux
- arch: aarch64
target_os: linux
- arch: armv7
target_os: linux
- arch: armv5
target_os: linux
- arch: x86_64
target_os: android
- arch: i686
target_os: android
- arch: aarch64
target_os: android
- arch: armv7
target_os: android
- arch: x86_64
target_os: windows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
- run: export GOOS=${{ matrix.target_os }}
- run: export GOARCH=${{ matrix.arch }}
- run: go build -o ./dist/
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: wireguard-go-${{ matrix.target_os }}-${{ matrix.arch }}
path: dist/