Skip to content

Commit ca8f9a9

Browse files
committed
More dependency fixes for Dawn CI
1 parent 36a6b51 commit ca8f9a9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/dawn.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,16 @@ jobs:
9393
if: matrix.platform == 'ubuntu-latest'
9494
run: |
9595
sudo apt-get update
96-
sudo apt-get install -y build-essential cmake curl git gnupg2 libcurl4-openssl-dev libpython3-dev libssl-dev libx11-xcb-dev libxcursor-dev libxi-dev libxinerama-dev libxml2-dev libxrandr-dev libz-dev libz3-dev mesa-common-dev ninja-build pkg-config python3 python3-pip python3-venv tzdata unzip wget
96+
sudo apt-get install -y build-essential clang cmake curl git gnupg2 libcurl4-openssl-dev libpython3-dev libssl-dev libx11-xcb-dev libxcursor-dev libxi-dev libxinerama-dev libxml2-dev libxrandr-dev libz-dev libz3-dev mesa-common-dev ninja-build pkg-config python3 python3-pip python3-venv tzdata unzip wget
97+
echo "c_compiler=clang" >> "$GITHUB_OUTPUT"
98+
echo "cxx_compiler=clang++" >> "$GITHUB_OUTPUT"
99+
100+
- name: Install prerequisites on Mac
101+
if: matrix.platform == 'macos-latest'
102+
run: |
103+
brew install cmake ninja
104+
echo "c_compiler=clang" >> "$GITHUB_OUTPUT"
105+
echo "cxx_compiler=clang++" >> "$GITHUB_OUTPUT"
97106
98107
- name: Set up Python
99108
uses: actions/setup-python@v5
@@ -113,6 +122,9 @@ jobs:
113122
path: Dawn/dawn_source/
114123

115124
- name: Build Dawn for ${{ matrix.target }}
125+
env:
126+
CC: ${{ env.c_compiler }}
127+
CXX: ${{ env.cxx_compiler }}
116128
run: |
117129
cd Dawn
118130
python ci_build_dawn.py build-target --target ${{ matrix.target }}

0 commit comments

Comments
 (0)