From f53bf6575471e37c012026b3f8be63c531a9e48f Mon Sep 17 00:00:00 2001 From: Saulius Grigaitis Date: Tue, 23 Apr 2024 14:40:06 +0300 Subject: [PATCH] Added Github worflow for release --- .github/workflows/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..7da4019f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,22 @@ +name: Release + +on: + push: tags + +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