Skip to content

Commit 6d85e66

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

File tree

1 file changed

+60
-23
lines changed

1 file changed

+60
-23
lines changed

.github/workflows/ci.yml

+60-23
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,85 @@ 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+
steps:
21+
- uses: actions/checkout@v4
1122
with:
1223
submodules: true
1324

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

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

28-
windows-mingw:
29-
name: Windows (MinGW)
30-
runs-on: windows-latest
31-
defaults:
32-
run:
33-
shell: msys2 {0}
76+
macos:
77+
name: macOS
78+
runs-on: macos-latest
3479
steps:
3580
- uses: actions/checkout@v3
3681
with:
3782
submodules: true
3883

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-
4784
- name: Build
48-
run: mingw32-make
85+
run: make
4986

5087
freebsd:
5188
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)