Add test on Fedora rawhide

This commit is contained in:
Benson Muite 2023-04-18 07:33:17 +03:00 committed by GitHub
parent cdf31c1455
commit e5c6252db3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,3 +30,34 @@ jobs:
- name: make install
run: sudo make install
test:
name: fedora
runs-on: ubuntu-latest
steps:
- name: Setup Podman
run: |
sudo apt update
sudo apt-get -y install podman
podman pull fedora:rawhide
- name: Get source
uses: actions/checkout@v3
with:
path: 'workflow'
- name: Create container and run tests
run: |
{
echo 'FROM fedora:rawhide'
echo 'RUN dnf -y update'
echo 'RUN dnf -y install cmake gcc-c++ gtest-devel make'
echo 'RUN dnf -y install openssl-devel protobuf-devel'
echo 'RUN dnf -y install lz4-devel snappy-devel workflow-devel'
echo 'RUN dnf clean all'
echo 'COPY workflow workflow'
echo 'WORKDIR /workflow'
echo "RUN cmake"
echo "RUN make"
echo "RUN make check"
echo "RUN make tutorial"
} > podmanfile
podman build --tag fedorarawhide -f ./podmanfile