mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
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>
37 lines
644 B
YAML
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
|