Files
mesa/.github/workflows/ci.yml
Yonggang Luo e04d4f881e ci: Improve MacOS github ci
GALLIUM_DUMP_CPU=true to see dump result
Save the testing log artifacts

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17879>
2022-08-12 19:04:35 +00:00

49 lines
1.0 KiB
YAML

name: CI
on: push
permissions:
contents: read
jobs:
CI:
runs-on: macos-latest
env:
GALLIUM_DUMP_CPU: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: |
cat > Brewfile <<EOL
brew "bison"
brew "expat"
brew "gettext"
brew "libx11"
brew "libxcb"
brew "libxdamage"
brew "libxext"
brew "meson"
brew "pkg-config"
brew "python@3.10"
EOL
brew update
brew bundle --verbose
- name: Install Mako
run: pip3 install --user mako
- name: Configure
run: meson . build -Dbuild-tests=true -Dosmesa=true
- name: Build
run: meson compile -C build
- name: Test
run: meson test -C build --print-errorlogs
- name: Install
run: meson install -C build
- name: 'Upload Artifact'
if: always()
uses: actions/upload-artifact@v3
with:
name: test-result
path: build/meson-logs/testlog.txt
retention-days: 5