summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: 442d98b7a77464a5f1d3609232381ce9d447cd6b (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
---
name: Build test
'on':
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
          os: [ "alpine", "archlinux", "fedora", "ubuntu" ]

    container:
      image: ${{ matrix.os }}

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Install Dependencies
        run: |
          ./scripts/install-deps.sh

      - name: Build
        run: |
          SETUPTOOLS_SCM_PRETEND_VERSION="0" make

      - name: Run check
        run: |
          SETUPTOOLS_SCM_PRETEND_VERSION="0" make check