-
-
Notifications
You must be signed in to change notification settings - Fork 43
40 lines (37 loc) · 1.36 KB
/
Copy pathfedora-linux-cpp.yml
File metadata and controls
40 lines (37 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Fedora Linux Build with System Libraries
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
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@v4
with:
path: 'picasso'
- name: Create container and run tests
run: |
{
echo 'FROM fedora:rawhide'
echo 'RUN dnf clean all && dnf makecache'
echo 'RUN dnf -y update'
echo 'RUN dnf -y install xz-libs'
echo 'RUN dnf -y install --setopt=tsflags=noscripts fontconfig && dnf -y install cmake gcc-c++ giflib-devel gtk2-devel'
echo 'RUN dnf -y install libjpeg-turbo-devel libwebp-devel'
echo 'RUN dnf -y install libpng-devel zlib-ng-compat-devel'
echo 'RUN dnf clean all'
echo 'COPY picasso picasso'
echo 'WORKDIR /picasso'
echo 'RUN cmake . -Bbuild2 -DOPT_SYSTEM_GIF="OFF" -DOPT_SYSTEM_JPEG="ON" -DOPT_SYSTEM_PNG="ON" -DOPT_SYSTEM_WEBP="ON" -DOPT_SYSTEM_ZLIB="ON" '
echo 'WORKDIR /picasso/build2'
echo 'RUN make'
} > podmanfile
podman build --tag fedora_test -f ./podmanfile