Skip to content

Commit

Permalink
Merge pull request #141 from bkmgit/fedora-ci
Browse files Browse the repository at this point in the history
Add build on latest fedora
  • Loading branch information
hariharan-devarajan authored Dec 16, 2023
2 parents bf5d3d6 + f02c6a7 commit 365d638
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/docker/fedora.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM fedora:latest
RUN dnf -y update
RUN dnf -y install check-devel cmake git gcc-c++ python3-sphinx
RUN dnf clean all
COPY GOTCHA GOTCHA
WORKDIR /GOTCHA
RUN cmake . -B build -DGOTCHA_ENABLE_TESTS=ON -DDEPENDENCIES_PREINSTALLED=TRUE -DCMAKE_BUILD_TYPE=PROFILE -DGOTCHA_ENABLE_WARNING_ERROR=ON
RUN cmake --build build
RUN ctest --test-dir build -VV
21 changes: 20 additions & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
push:

jobs:
build-and-test:
build-and-test-ubuntu:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -65,3 +65,22 @@ jobs:
fi
cat $FILE
curl -v -F json_file=@$FILE https://coveralls.io/api/v1/jobs
build-and-test-fedora:
name: fedora
runs-on: ubuntu-latest

steps:
- name: Setup Podman
run: |
sudo apt update
sudo apt-get -y install podman
podman pull fedora:latest
- name: Get source
uses: actions/checkout@v3
with:
path: 'GOTCHA'
- name: Create container and run tests
run: |
cp GOTCHA/.github/docker/fedora.dockerfile .
podman build --tag fedora_latest_test --file=fedora.dockerfile

0 comments on commit 365d638

Please sign in to comment.