dbg #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Mesa | |
on: [push,workflow_dispatch] | |
jobs: | |
build: | |
name: Build ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-24.04, macos-latest, windows-2022] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: false | |
- name: Setup Python environment | |
shell: bash | |
if: ${{ matrix.os != 'windows-2022' }} | |
run: | | |
python3 -m venv venv | |
source venv/bin/activate | |
python3 -m pip install meson packaging pyyaml mako | |
- name: Install required packages (Ubuntu) | |
if: ${{ matrix.os == 'ubuntu-24.04' }} | |
run: sudo apt install -y libdrm-dev libxcb1-dev libxrandr-dev libxcb-randr0-dev libx11-xcb-dev libxcb-dri3-dev libxcb-present-dev libxcb-shm0-dev libxshmfence-dev | |
- name: Install required packages (macOS) | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: brew install llvm | |
- name: Install required packages (Windows) | |
if: ${{ matrix.os == 'windows-2022' }} | |
run: | | |
pip install mako meson pyyaml | |
choco install llvm | |
choco list --local-only --exact llvm --trace | |
ls -l C:\ProgramData\chocolatey\ | |
ls -l C:\ProgramData\chocolatey\bin | |
ls -l C:\ProgramData\chocolatey\lib | |
ls -l C:\ProgramData\chocolatey\lib\llvm | |
ls -l C:\ProgramData\chocolatey\lib\llvm\tools | |
- name: Setup Ninja | |
uses: ./.github/actions/setup-ninja | |
- name: Fetch sources | |
run: | | |
git clone -b main --depth 1 https://gitlab.freedesktop.org/mesa/mesa.git mesa | |
- name: Setup ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
variant: sccache | |
key: ${{ matrix.os }}-mesa | |
- name: Compose configuration options | |
shell: bash | |
run: | | |
if [ "$RUNNER_OS" == "Windows" ]; then | |
echo "platforms=windows" >> $GITHUB_ENV | |
elif [ "$RUNNER_OS" == "macOS" ]; then | |
echo "platforms=macos" >> $GITHUB_ENV | |
else | |
echo "platforms=x11" >> $GITHUB_ENV | |
fi | |
- name: Configure | |
if: ${{ matrix.os != 'windows-2022' }} | |
shell: bash | |
run: | | |
if [ "$RUNNER_OS" != "Windows" ]; then | |
source venv/bin/activate | |
fi | |
pip list | |
if [ "$RUNNER_OS" == "macOS" ]; then | |
ls -l /opt/homebrew/opt/llvm/bin | |
export PATH="/opt/homebrew/opt/llvm/bin:$PATH" | |
export AR=/opt/homebrew/opt/llvm/bin/llvm-ar | |
fi | |
cd mesa | |
meson setup -Dvulkan-drivers='swrast' -Dintel-clc=system -Dopengl=false -Dgles1=false -Dgles2=false -Dgallium-drivers='llvmpipe' -Dplatforms=${{ env.platforms }} build | |
# FIXME separate configure step necessary because using bash selects GNU link.exe | |
- name: Configure (Windows) | |
if: ${{ matrix.os == 'windows-2022' }} | |
run: | | |
pip list | |
cd mesa | |
meson setup -Dvulkan-drivers='swrast' -Dintel-clc=system -Dopengl=false -Dgles1=false -Dgles2=false -Dgallium-drivers='llvmpipe' -Dplatforms=${{ env.platforms }} build | |
- name: Build | |
run: | | |
ninja -C mesa/build | |
#- name: Compose artifact path | |
# shell: bash | |
# run: | | |
# if [ "$RUNNER_OS" == "Windows" ]; then | |
# echo "artifact-dir=Windows" >> $GITHUB_ENV | |
# elif [ "$RUNNER_OS" == "macOS" ]; then | |
# echo "artifact-dir=Darwin" >> $GITHUB_ENV | |
# else | |
# echo "artifact-dir=Linux" >> $GITHUB_ENV | |
# fi | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: mesa-${{ runner.os }} | |
path: ${{ github.workspace }}/mesa/build/src/gallium/targets/lavapipe |