From 09591ea192dfea6fb62a200ce9c9eccd7337187d Mon Sep 17 00:00:00 2001 From: Austin Eng Date: Tue, 31 Oct 2023 11:00:26 -0700 Subject: [PATCH] Update cmake.yml: Install GCC --- .github/workflows/cmake.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 012b717e8cc..67564969d66 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -25,7 +25,6 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] build_type: [Release] c_compiler: [gcc, clang, cl] - python-version: ["3.11"] include: - os: windows-latest c_compiler: cl @@ -67,10 +66,14 @@ jobs: sudo apt update sudo apt install libgl-dev libx11-xcb-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev wayland-protocols libwayland-dev libxkbcommon-dev - - name: Set up Python ${{ matrix.python-version }} + - name: Install GCC + if: matrix.c_compiler == 'gcc' + run: sudo apt install gcc g++ + + - name: Set up Python uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-version }} + python-version: 3.11 - name: Fetch dependencies run: python ./tools/fetch_dawn_dependencies.py --use-test-deps --shallow @@ -82,7 +85,7 @@ jobs: if: matrix.os == 'windows-latest' uses: seanmiddleditch/gha-setup-vsdevenv@master - - name: Setup sccache + - name: Set up sccache uses: mozilla-actions/sccache-action@v0.0.3 - name: Configure CMake