add ci #1
Workflow file for this run
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: build | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
targets: x86_64-unknown-linux-musl,aarch64-unknown-linux-musl | |
components: rust-src | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build x86_64 | |
run: cargo build --release | |
- name: Upload x86_64 Building | |
uses: actions/[email protected] | |
with: | |
name: estrace-x86_64-unknown-linux-musl | |
path: target/x86_64-unknown-linux-musl/release/estrace | |
- name: Build AArch64 | |
run: cargo build --target aarch64-unknown-linux-musl --release | |
- name: Upload AArch64 Building | |
uses: actions/[email protected] | |
with: | |
name: estrace-aarch64-unknown-linux-musl | |
path: target/aarch64-unknown-linux-musl/release/estrace |