From 345fcde5a796aa478a4f8f3b8f39cc04d3eab18a Mon Sep 17 00:00:00 2001 From: Dmitry Stepanov Date: Sat, 23 Mar 2024 10:55:09 +0300 Subject: [PATCH] yet another attempt to fix ci --- .github/workflows/ci.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 240751fa5..67b3358cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,26 +41,21 @@ jobs: sudo apt-get update # Run update first or install might start failing eventually. sudo apt-get install --no-install-recommends -y libasound2-dev libudev-dev pkg-config xorg-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev + - run: rustc --version && cargo --version + - name: Set env variables (Windows) if: ${{ matrix.os == 'windows-latest' }} run: | setx RUSTFLAGS "-C prefer-dynamic=yes" + cargo build --verbose --workspace --all-targets --all-features --profile github-ci + cargo test --verbose --workspace --all-features --profile github-ci - name: Set env variables (Unix) if: ${{ matrix.os != 'windows-latest' }} run: | export RUSTFLAGS="-C prefer-dynamic=yes" - - - run: rustc --version && cargo --version - - name: Build - # Use build instead of check since it needs to be built for tests anyway - run: cargo build --verbose --workspace --all-targets --all-features --profile github-ci - - name: Test - # Currently --all-targets *disables* running doc-tests - # and none of the other targets such as examples *currently* have tests - # so we don't use it. It should be added later when the issue is fixed: - # https://github.com/rust-lang/cargo/issues/6669 - run: cargo test --verbose --workspace --all-features --profile github-ci + cargo build --verbose --workspace --all-targets --all-features --profile github-ci + cargo test --verbose --workspace --all-features --profile github-ci wasm: name: Wasm CI