From 5c4af767ada8ea4000c6a9858d14a1b94c5ae48b Mon Sep 17 00:00:00 2001 From: Matt Green Date: Tue, 3 Sep 2024 12:54:21 -0700 Subject: [PATCH] Disable building denormalized-python with cargo-build --- .github/actions/setup-builder/action.yaml | 12 ++++++++++++ .github/workflows/rust.yml | 7 +++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .github/actions/setup-builder/action.yaml diff --git a/.github/actions/setup-builder/action.yaml b/.github/actions/setup-builder/action.yaml new file mode 100644 index 0000000..dca0076 --- /dev/null +++ b/.github/actions/setup-builder/action.yaml @@ -0,0 +1,12 @@ +name: Prepare Rust Environment +description: 'Prepare Rust Build Environment' +runs: + using: "composite" + steps: + - name: Configure runtime env + shell: bash + run: | + echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV + echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV + echo "RUST_BACKTRACE=1" >> $GITHUB_ENV + echo "RUSTFLAGS=-C debuginfo=line-tables-only -C incremental=false" >> $GITHUB_ENV diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7fc74d3..76fe179 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,10 +20,13 @@ jobs: with: toolchain: stable components: clippy - - uses: Swatinem/rust-cache@v2 + - name: Rust Cache + uses: Swatinem/rust-cache@v2 + - name: Prepare Rust Env + uses: ./.github/actions/setup-builder - name: Build - run: cargo build --verbose + run: cargo check --verbose - name: Run Clippy run: cargo clippy --all-targets --all-features - name: Run tests