Skip to content

Commit

Permalink
WIP mesa build job
Browse files Browse the repository at this point in the history
Change-Id: I8836241789d7f54f7e2a3d885b7bd9c83a747893
  • Loading branch information
kpet committed Nov 22, 2024
1 parent 4aa6f00 commit 4f4ff4e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-mesa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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 }}

0 comments on commit 4f4ff4e

Please sign in to comment.