-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (54 loc) · 1.71 KB
/
build_ruci_cmd_cross.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
name: Ruci-Cmd Release Cross
on:
workflow_call:
workflow_dispatch:
inputs:
tag:
description: 'Release Tag'
required: true
type: string
env:
CARGO_TERM_COLOR: always
jobs:
build-cross:
permissions: write-all
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
strategy:
fail-fast: false
matrix:
target:
- aarch64-linux-android
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- i686-unknown-linux-musl
- x86_64-unknown-linux-musl
- armv7-unknown-linux-musleabihf
- armv7-unknown-linux-gnueabihf
- arm-unknown-linux-gnueabi
- arm-unknown-linux-gnueabihf
- arm-unknown-linux-musleabi
- arm-unknown-linux-musleabihf
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install stable
rustup default stable
rustup override set stable
- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross
- name: Build ${{ matrix.target }}
run: |
compile_features="-f api_server -f api_client -f utils -f tun -f quinn -f native-tls-vendored -f lua54 -f smoltcp"
cd crates/ruci-cmd
./build_cross.sh -v ${{ inputs.tag || github.ref_name }} -t ${{ matrix.target }} $compile_features
- name: Upload Github Assets
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: crates/ruci-cmd/dist/*.tar.xz
tag_name: ${{ inputs.tag || github.ref_name }}