This repository was archived by the owner on Oct 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (63 loc) · 2.13 KB
/
Copy pathmain.yml
File metadata and controls
68 lines (63 loc) · 2.13 KB
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
name: Build and deploy multi-architecture binaries
on:
push:
tags:
- "*"
env:
TAG: "0.5.2"
TARGETS: "aarch64-unknown-linux-gnu,aarch64-unknown-linux-musl,armv7-unknown-linux-gnueabihf,armv7-unknown-linux-musleabi,armv7-unknown-linux-musleabihf,x86_64-unknown-linux-gnu,x86_64-unknown-linux-musl,arm-unknown-linux-gnueabihf"
jobs:
legacy:
name: Build legacy kernel versions
runs-on: ubuntu-latest
steps:
- name: Checkout Local
uses: actions/checkout@v3
- name: Install Earthly
run: |
sudo /bin/sh -c "wget https://github.com/earthly/earthly/releases/download/v0.6.30/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly"
- name: Build artifacts using Earthly
run: |
earthly +all --TAG="$TAG"
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/boringtun-legacy-kernel.tar.xz
cross:
name: Build binaries using Cargo/Cross
runs-on: ubuntu-latest
steps:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ env.TARGETS }}
- name: Install Cross for Cargo
run: |
cargo install cross --git https://github.com/cross-rs/cross
- name: Checkout Local
uses: actions/checkout@v3
with:
path: boringtun-static
- name: Checkout boringtun
uses: actions/checkout@v3
with:
repository: cloudflare/boringtun
ref: boringtun-cli-${{ env.TAG }}
path: boringtun
- name: Compile Binaries
run: |
cd boringtun
cat ../boringtun-static/config-append.toml >> .cargo/config.toml
mkdir -p dist
for TARGET in ${TARGETS//,/ }
do
cross build --release --target=${TARGET}
XZ_OPT=-9 tar -C target/${TARGET}/release -Jcvf dist/boringtun-cli-${TAG}-${TARGET}.tar.xz boringtun-cli
done
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
boringtun/dist/*