Skip to content

Commit

Permalink
Update fedora in ci.yml (#1343)
Browse files Browse the repository at this point in the history
  • Loading branch information
holmes1412 authored Aug 10, 2023
1 parent 80b3dfb commit 3c56c9f
Showing 1 changed file with 20 additions and 28 deletions.
48 changes: 20 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
branches: [ master ]

jobs:
build:

ubuntu-cmake:
name: ubuntu
runs-on: ubuntu-latest

Expand All @@ -25,33 +26,24 @@ jobs:
- name: make tutorial
run: make tutorial

test:
fedora-cmake:
name: fedora
runs-on: ubuntu-latest

container:
image: fedora:35

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 redis valgrind'
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
- uses: actions/checkout@v3
- run: cat /etc/os-release
- name: install dependencies
run: |
dnf -y update
dnf -y install cmake gcc-c++ gtest-devel make
dnf -y install openssl-devel redis valgrind
- name: make
run: make
- name: make check
run: make check
- name: make tutorial
run: make tutorial

0 comments on commit 3c56c9f

Please sign in to comment.