Skip to content

WIP mesa build job

WIP mesa build job #2

Workflow file for this run

name: Build Mesa
on: [push,workflow_dispatch]
jobs:
build:
name: Build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-latest, windows-2019]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: false
- 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: Configure
shell: bash
run: |
meson setup -Dvulkan-drivers='swrast' -Dintel-clc=system -Dopengl=false -Dgles1=false -Dgles2=false -Dgallium-drivers='llvmpipe' build
- name: Build
run: |
ninja -C 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: ./build/${{ env.artifact-dir }}