[ci] Fix Ubuntu GitHub Actions job #571
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AlmaLinux | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- AUTHORS.md | |
- CC-BY-4.0.txt | |
- CODE_OF_CONDUCT.md | |
- COPYING | |
- COPYING.LIB | |
- HISTORY | |
- LICENSE-2.0.txt | |
- MISSING | |
- README.md | |
- TODO | |
- 'contrib/**' | |
- 'data/**' | |
- 'doc/**' | |
- 'po/**' | |
- 'regress/**' | |
jobs: | |
linux: | |
# Use containers on their ubuntu latest image | |
runs-on: ubuntu-latest | |
# Set up the matrix of distributions to test | |
strategy: | |
matrix: | |
container: ["almalinux:8", "almalinux:9"] | |
container: | |
image: ${{ matrix.container }} | |
# All of these steps run from within the main source | |
# directory, so think of that as your $PWD | |
steps: | |
# Requirements before the git clone can happen | |
- name: git clone requirements | |
run: | | |
yum install -y epel-release git | |
# This means clone the git repo | |
- uses: actions/checkout@v4 | |
# Within the container, install the dependencies, build, | |
# and run the test suite | |
- name: Build and run the test suite | |
run: | | |
# Install make(1) so we can use the instreqs target | |
yum install -y make | |
# Install build dependencies and set up the target | |
make instreqs | |
# Build the software and run the test suite | |
make debug | |
make check | |
ninja -C build coverage && ( curl -s https://codecov.io/bash | bash ) || : |