File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments