dtc/.github/workflows/build.yml
Biswapriyo Nath e8364666d5 CI: Add build matrix with multiple Linux distributions
set SETUPTOOLS_SCM_PRETEND_VERSION="0" variable because GitHub Actions
does not copy the .git directory into the container. Without that, the
build fails with the following error

LookupError: setuptools-scm was unable to detect version for /__w/dtc/dtc.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2023-05-16 19:30:09 +10:00

37 lines
644 B
YAML

---
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