diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59fa6c8..16a4126 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,24 +28,24 @@ jobs: python-version: '3.10' - name: (Windows) Set up MinGW - if: ${{ matrix.identifier }} == 'windows' + if: ${{ startsWith(matrix.identifier, 'windows') }} uses: egor-tensin/setup-mingw@v2 - name: (Windows) Prepare cross compilation - if: ${{ matrix.identifier }} == 'windows' + if: ${{ startsWith(matrix.identifier, 'windows') }} shell: sh run: | echo "OS=Windows_NT" >> $GITHUB_ENV - name: (Linux) Install dependencies - if: ${{ matrix.identifier }} == 'linux' + if: ${{ startsWith(matrix.identifier, 'linux') }} run: | sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse" sudo apt-get update -y -qq sudo apt-get install libsdl2-dev libglew-dev - name: (Web) Set up Emscripten - if: ${{ matrix.identifier }} == 'web' + if: ${{ startsWith(matrix.identifier, 'web') }} uses: mymindstorm/setup-emsdk@v14 - name: Build shared library