summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: a7bc1ffff0e6f13a02b0844f057835a079c124cd (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
name: CI
on: push

jobs:
  CI:
    runs-on: macos-latest
    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
    - name: Build
      run: meson compile -C build
    - name: Test
      run: meson test -C build
    - name: Install
      run: meson install -C build