Ruci-Cmd Release Cross #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |