diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94793adb..eae8a839 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,11 @@ jobs: # # Running `rustc` or Cargo should automatically install the toolchain specified in `rust-toolchain.toml`. - uses: Swatinem/rust-cache@v2 + - name: Build x86_64-unknown-linux-gnu + run: cross build --bin grandine --target x86_64-unknown-linux-gnu --features default-networks --profile release # --profile compact + - name: Build x86_64-unknown-linux-gnu + run: cross build --bin grandine --target aarch64-unknown-linux-gnu --features default-networks --profile release # --profile compact + - uses: Swatinem/rust-cache@v2 - name: Check if code is formatted run: cargo fmt --check - name: Run Clippy diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..8abe316a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Release + +on: + push: + tags: + - 'release*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + lfs: true + # There should be no need to install Rustup or a Rust toolchain explicitly. + # The `ubuntu-22.04` image already includes Rustup: + # + # Running `rustc` or Cargo should automatically install the toolchain specified in `rust-toolchain.toml`. + - uses: Swatinem/rust-cache@v2 + - name: Build x86_64-unknown-linux-gnu + run: cross build --bin grandine --target x86_64-unknown-linux-gnu --features default-networks --profile release # --profile compact + - name: Build x86_64-unknown-linux-gnu + run: cross build --bin grandine --target aarch64-unknown-linux-gnu --features default-networks --profile release # --profile compact