From 26de69b6e2415aa13ee8a47a4f8810790d532337 Mon Sep 17 00:00:00 2001 From: IgorRachkov <89467086+igor04091968@users.noreply.github.com> Date: Sun, 14 Jun 2026 16:28:28 +0300 Subject: [PATCH] ci: add pinned GitHub binary build workflow --- .github/workflows/rust-binary-build.yml | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/rust-binary-build.yml diff --git a/.github/workflows/rust-binary-build.yml b/.github/workflows/rust-binary-build.yml new file mode 100644 index 0000000..26c765e --- /dev/null +++ b/.github/workflows/rust-binary-build.yml @@ -0,0 +1,38 @@ +name: rust-binary-build + +on: + workflow_dispatch: + push: + tags: + - 'v*' + +jobs: + build-linux-x86_64: + runs-on: ubuntu-latest + timeout-minutes: 60 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install pinned Rust toolchain + run: | + rustup toolchain install 1.94.0 --profile minimal --component rustfmt --component clippy + rustup override set 1.94.0 + rustup show active-toolchain + cargo +1.94.0 --version + rustc +1.94.0 --version + + - name: Check, test and build + run: | + cargo +1.94.0 fmt --manifest-path adk-rust/Cargo.toml --all -- --check + cargo +1.94.0 test --manifest-path adk-rust/Cargo.toml --workspace --no-fail-fast + cargo +1.94.0 clippy --manifest-path adk-rust/Cargo.toml --workspace --all-targets -- -D warnings + cargo +1.94.0 build --manifest-path adk-rust/Cargo.toml --workspace --release + + - name: Upload release target directory + uses: actions/upload-artifact@v4 + with: + name: awatch-rus-linux-x86_64-release-target + path: adk-rust/target/release/ + if-no-files-found: error