-
-
Notifications
You must be signed in to change notification settings - Fork 12
102 lines (87 loc) · 2.02 KB
/
ci.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: CI
on: [push, pull_request]
jobs:
linux:
name: Rocky Linux
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:8
steps:
- name: Are we really on Rocky Linux?
run: cat /etc/os-release
- name: Install dependencies
run: |
dnf update -y
dnf install -y chrpath gcc make
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
make
strip -S libtheorafile.so
- name: Archive build result
uses: actions/upload-artifact@v4
with:
name: Theorafile-lib64
path: libtheorafile.so
mingw:
name: Rocky Linux (MinGW)
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:8
steps:
- name: Are we really on Rocky Linux?
run: cat /etc/os-release
- name: Install dependencies
run: |
dnf update -y
dnf install -y mingw32-gcc mingw64-gcc
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
mingw32-make
mkdir x86
mv libtheorafile.dll x86/
mingw64-make
mkdir x64
mv libtheorafile.dll x64/
- name: Archive x86 build result
uses: actions/upload-artifact@v4
with:
name: Theorafile-x86
path: x86/libtheorafile.dll
- name: Archive x64 build result
uses: actions/upload-artifact@v4
with:
name: Theorafile-x64
path: x64/libtheorafile.dll
macos:
name: macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build
run: make
freebsd:
runs-on: ubuntu-latest
name: FreeBSD
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build
uses: cross-platform-actions/[email protected]
with:
operating_system: freebsd
version: '13.3'
run: |
sudo pkg update
sudo pkg install -y gmake
gmake