diff options
author | Biswapriyo Nath <nathbappai@gmail.com> | 2023-05-15 00:42:45 +0530 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2023-05-16 19:30:09 +1000 |
commit | e8364666d5acc985c434fb574e92c5206d9a8d6b (patch) | |
tree | 749e7923420e08b2745744c34df83b017041b0b6 /.github | |
parent | 3b02a94b486f998aa22d898b427820a805d0904f (diff) | |
download | device-tree-compiler-master.tar.gz |
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>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6daaa8d..442d98b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,22 +12,26 @@ jobs: build: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: [ "alpine", "archlinux", "fedora", "ubuntu" ] + + container: + image: ${{ matrix.os }} + steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - name: Install Dependencies - run: - sudo apt install - flex - libyaml-dev - pkg-config - python3-dev - swig - valgrind - bison + run: | + ./scripts/install-deps.sh - name: Build - run: make + run: | + SETUPTOOLS_SCM_PRETEND_VERSION="0" make - name: Run check - run: make check + run: | + SETUPTOOLS_SCM_PRETEND_VERSION="0" make check |