Skip to content

Commit 3d4dd8a

Browse files
committed
CI: Move to Rocky Linux, upload artifacts
1 parent a3c8cac commit 3d4dd8a

File tree

1 file changed

+58
-23
lines changed

1 file changed

+58
-23
lines changed

.github/workflows/ci.yml

+58-23
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,83 @@ on: [push, pull_request]
44

55
jobs:
66
linux:
7-
name: Linux
7+
name: Rocky Linux
88
runs-on: ubuntu-latest
9+
container:
10+
image: rockylinux/rockylinux:8
911
steps:
10-
- uses: actions/checkout@v3
12+
- name: Are we really on Rocky Linux?
13+
run: cat /etc/os-release
14+
15+
- name: Install dependencies
16+
run: |
17+
dnf update -y
18+
dnf install -y chrpath gcc make
19+
20+
- uses: actions/checkout@v4
1121
with:
1222
submodules: true
1323

1424
- name: Build
15-
run: make
25+
run: |
26+
make
27+
strip -S libtheorafile.so
1628
17-
macos:
18-
name: macOS
19-
runs-on: macos-latest
29+
- name: Archive build result
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: Theorafile-lib64
33+
path: libtheorafile.so
34+
35+
mingw:
36+
name: Rocky Linux (MinGW)
37+
runs-on: ubuntu-latest
38+
container:
39+
image: rockylinux/rockylinux:8
2040
steps:
21-
- uses: actions/checkout@v3
41+
- name: Are we really on Rocky Linux?
42+
run: cat /etc/os-release
43+
44+
- name: Install dependencies
45+
run: |
46+
dnf update -y
47+
dnf install -y mingw32-gcc mingw64-gcc
48+
49+
- uses: actions/checkout@v4
2250
with:
2351
submodules: true
2452

2553
- name: Build
26-
run: make
54+
run: |
55+
mingw32-make
56+
mkdir x86
57+
mv libtheorafile.dll x86/
58+
mingw64-make
59+
mkdir x64
60+
mv libtheorafile.dll x64/
61+
62+
- name: Archive x86 build result
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: Theorafile-x86
66+
path: x86/libtheorafile.dll
67+
68+
- name: Archive x64 build result
69+
uses: actions/upload-artifact@v4
70+
with:
71+
name: Theorafile-x64
72+
path: x64/libtheorafile.dll
2773

28-
windows-mingw:
29-
name: Windows (MinGW)
30-
runs-on: windows-latest
31-
defaults:
32-
run:
33-
shell: msys2 {0}
74+
macos:
75+
name: macOS
76+
runs-on: macos-latest
3477
steps:
3578
- uses: actions/checkout@v3
3679
with:
3780
submodules: true
3881

39-
- name: Set up MSYS2
40-
uses: msys2/setup-msys2@v2
41-
with:
42-
msystem: mingw32
43-
install: >-
44-
mingw-w64-i686-cc
45-
mingw-w64-i686-make
46-
4782
- name: Build
48-
run: mingw32-make
83+
run: make
4984

5085
freebsd:
5186
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)