From 8ad0586c25dd446ac18b43c8d9bfb49cc4dcf0f2 Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Wed, 7 Aug 2024 12:38:23 +0200 Subject: [PATCH] implemented contains --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72a04dd..f94ccb4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4 - name: Rust compilation prerequisites (Ubuntu) - if: ${{ matrix.os }} === "ubuntu-latest" + if: contains("${{ matrix.os }}", "ubuntu") run: | sudo apt update sudo apt install -y \ @@ -30,12 +30,12 @@ jobs: rustup component add rustfmt clippy rust-src - name: Install Cargo (MacOS) - if: ${{ matrix.os }} === "macos-lates" + if: contains("${{ matrix.os }}", "macos") run: curl https://sh.rustup.rs -sSf | sh # We've run into out-of-disk error when compiling Polkadot in the next step, so we free up some space this way. - name: Free Disk Space (Ubuntu) - if: ${{ matrix.os }} === "ubuntu-latest" + if: contains("${{ matrix.os }}", "ubuntu") uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # 1.3.1 with: android: true # This alone is a 12 GB save.