-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update RUSTFLAGS before restoring cache
- Loading branch information
1 parent
8f8a609
commit ba70752
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,20 +59,22 @@ jobs: | |
run: | | ||
rustup component add rustc-codegen-cranelift-preview --toolchain nightly-${{ matrix.rustc_version }} | ||
shell: bash | ||
if: ${{ matrix.codegen == 'cranelift' && matrix.rustc_channel == 'nightly' && matrix.os == 'ubuntu-24.04' }} | ||
if: ${{ matrix.codegen == 'cranelift' }} | ||
- name: Setup codegen unstable flag | ||
run: | | ||
printf 'CODEGEN_SELECTION=-Zcodegen-backend=cranelift' >> "$GITHUB_ENV" | ||
if: ${{ matrix.codegen == 'cranelift' }} | ||
- name: Build RUSTFLAGS | ||
run: | | ||
printf 'RUSTFLAGS=${{ env.CODEGEN_SELECTION }}' >> "$GITHUB_ENV" | ||
shell: bash | ||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
prefix-key: ${{ matrix.os }}-${{ matrix.rustc_version }}-${{ env.CI_RUST_CACHE_VERSION }}-${{ hashFiles('**/Cargo.lock') }} | ||
# See rust-wasm.yml for CI details about those package | ||
- name: Setup codegen unstable flag | ||
run: | | ||
printf 'CODEGEN_SELECTION=-Zcodegen-backend=cranelift' >> "$GITHUB_ENV" | ||
if: ${{ matrix.codegen == 'cranelift' && matrix.rustc_channel == 'nightly' && matrix.os == 'ubuntu-24.04' }} | ||
- name: Build package | ||
run: cargo build --workspace --exclude origlang-interop --exclude origlang-interop-frontend-webserver --verbose | ||
env: | ||
RUSTFLAGS: '${{ env.CODEGEN_SELECTION }}' | ||
- name: Lint with clippy | ||
run: cargo clippy --workspace --exclude origlang-interop --exclude origlang-interop-frontend-webserver --verbose | ||
- name: Run tests | ||
|