From 69b581bd545ed7787b87e4a0ffd136e643e952d4 Mon Sep 17 00:00:00 2001 From: Kaur Kuut Date: Sun, 8 Dec 2024 15:26:31 +0200 Subject: [PATCH] Disconnect the CI OS detection from the OS version. --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34243c59c..4cd6b1b13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,7 +125,7 @@ jobs: tool: cargo-hack - name: install native dependencies - if: matrix.os == 'ubuntu-latest' + if: runner.os == 'Linux' run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev - name: restore cache @@ -253,12 +253,12 @@ jobs: toolchain: ${{ env.RUST_STABLE_VER }} - name: install native dependencies - if: matrix.os == 'ubuntu-latest' + if: runner.os == 'Linux' run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev # Adapted from https://github.com/bevyengine/bevy/blob/b446374392adc70aceb92621b080d1a6cf7a7392/.github/workflows/validation-jobs.yml#L74-L79 - name: install xvfb, llvmpipe and lavapipe - if: matrix.os == 'ubuntu-latest' + if: runner.os == 'Linux' # https://launchpad.net/~kisak/+archive/ubuntu/turtle run: | sudo apt-get update -y -qq @@ -361,7 +361,7 @@ jobs: tool: cargo-hack - name: install native dependencies - if: matrix.os == 'ubuntu-latest' + if: runner.os == 'Linux' run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev - name: restore cache