Skip to content

Commit

Permalink
Add Fedora 37 CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
dfandrich committed Feb 11, 2023
1 parent 9124150 commit ce497a6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -369,3 +369,41 @@ jobs:
fi
- name: install test
run: make prefix= DESTDIR="${PWD}" ${{ matrix.build.install_target }}

build-fedora37:
runs-on: ubuntu-latest
container: fedora:37
strategy:
fail-fast: false
matrix:
build:
- cc: gcc
gtk: 3
install: gcc g++ make diffutils desktop-file-utils docbook-style-xsl exiv2 exiv2-devel gtk3-devel xsltproc gettext-devel
cflags: -Wall -Wextra -Werror -Wno-error=deprecated-declarations -O3 -DENABLE_NLS=1
cxx: g++
target: all
install_target: install install-po install-desktop-file

steps:
- uses: actions/checkout@v3
- name: install deps
run: |
dnf install -y --setopt=install_weak_deps=False ${{ matrix.build.install }}
- name: build
run: make CFLAGS="${{ matrix.build.cflags }}" LDFLAGS="${{ matrix.build.ldflags }}" CC="${{ matrix.build.cc }}" CXX="${{ matrix.build.cxx }}" GTK="${{ matrix.build.gtk }}" ${{ matrix.build.make_opts }} ${{ matrix.build.target }}
- name: smoke test
run: ./gpscorrelate -V
- name: test
run: |
if [[ -z "${{ matrix.build.failing_tests }}" ]] ; then
make check CHECK_OPTIONS=-v ASAN_OPTIONS="${{ matrix.build.asan_options }}"
else
# Debug logging enabled makes some tests fail due to differing output
echo 'Expecting ${{ matrix.build.failing_tests }} test failures'
make check CHECK_OPTIONS=-v | tee /dev/stderr | grep -q '${{ matrix.build.failing_tests }} test(s) have FAILED'
fi
- name: install test
run: |
install -d -m 0777 tests/log
sudo -u nobody make prefix= DESTDIR="${PWD}" ${{ matrix.build.install_target }}

0 comments on commit ce497a6

Please sign in to comment.