genimage/.github/workflows/tests.yml
Roland Hieber 165d4383f7 .github: upgrade actions to Node 16
Node 12 has been out of support since April 2022, and all actions using
it are being phased out, and produce build warnings [1][2]. Upgrade
actions/checkout to the newest version that uses the current Node
version.

[1]: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
[2]: https://github.com/pengutronix/genimage/actions/runs/4540574366

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
2023-03-28 10:03:30 +02:00

46 lines
1.3 KiB
YAML

name: tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-22.04
pkgs: device-tree-compiler rauc simg2img u-boot-tools f2fs-tools arm-trusted-firmware-tools
- os: ubuntu-22.04
pkgs: device-tree-compiler rauc simg2img u-boot-tools f2fs-tools arm-trusted-firmware-tools
fake: sudo rm /usr/include/linux/fiemap.h /usr/include/linux/fs.h
env: ac_cv_func_fallocate=no
- os: ubuntu-20.04
pkgs: device-tree-compiler rauc simg2img u-boot-tools f2fs-tools
steps:
- name: Inspect environment
run: |
whoami
lsb_release -a
gcc --version
- uses: actions/checkout@v3
- name: Install required packages
run: |
sudo apt-get update
sudo apt-get install dosfstools fakeroot genext2fs genisoimage libconfuse-dev mtd-utils mtools qemu-utils qemu-utils squashfs-tools ${{ matrix.pkgs }}
${{ matrix.fake }}
- name: Build & Test (with ${{ matrix.options }})
run: |
./autogen.sh
./configure
${{ matrix.env }} M_COLOR_TESTS=always make distcheck
- name: Dump test log
if: ${{ failure() }}
run: |
find -name test-suite.log -print0 | xargs -0 cat