mirror of
https://gitee.com/sogou/srpc.git
synced 2024-12-21 16:14:54 +08:00
Add test on Fedora rawhide
This commit is contained in:
parent
cdf31c1455
commit
e5c6252db3
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user