summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: a172bea3e31ca993d6e71f506227bff668e0c618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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