mirror of https://gitlab.com/fscarmen/test.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
name: Cross compile BoringTun
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
BoringTun:
|
|
name: Cross compile BoringTun
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
target: [ aarch64-unknown-linux-gnu, armv7-unknown-linux-gnueabihf, i686-unknown-linux-gnu, i686-unknown-linux-musl, mips-unknown-linux-gnu, mips64-unknown-linux-gnuabi64, mips64el-unknown-linux-gnuabi64, mipsel-unknown-linux-gnu, powerpc-unknown-linux-gnu, powerpc64-unknown-linux-gnu, powerpc64le-unknown-linux-gnu, arm-unknown-linux-gnueabi, x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl]
|
|
steps:
|
|
- name: Check code
|
|
uses: actions/checkout@v2
|
|
- name: Git clone BoringTun
|
|
run: |
|
|
git clone https://github.com/cloudflare/boringtun
|
|
cp -r boringtun/* .
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
use-cross: true
|
|
command: build
|
|
args: --release --bin boringtun-cli_${{ matrix.target }} --all-features
|
|
|
|
- name: Release binaries
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
tag_name: BoringTun
|
|
files: ./target/release/boringtun-cli_${{ matrix.target }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|