-
Notifications
You must be signed in to change notification settings - Fork 41
105 lines (102 loc) · 2.69 KB
/
main.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
103
104
105
name: Build
on: [push, pull_request]
jobs:
Build:
name: Build all pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout SDL3
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL
ref: main
path: external/SDL3
- name: Checkout SDL2
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL
ref: SDL2
path: external/SDL2
- name: Checkout SDL3_image
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL_image
ref: main
path: external/SDL3_image
- name: Checkout SDL2_image
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL_image
ref: SDL2
path: external/SDL2_image
- name: Checkout SDL3_mixer
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL_mixer
ref: main
path: external/SDL3_mixer
- name: Checkout SDL2_mixer
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL_mixer
ref: SDL2
path: external/SDL2_mixer
- name: Checkout SDL3_net
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL_net
ref: main
path: external/SDL3_net
- name: Checkout SDL2_net
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL_net
ref: SDL2
path: external/SDL2_net
- name: Checkout SDL3_ttf
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL_ttf
ref: main
path: external/SDL3_ttf
- name: Checkout SDL2_ttf
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL_ttf
ref: SDL2
path: external/SDL2_ttf
- name: Checkout SDL3_rtf
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL_rtf
ref: main
path: external/SDL2_rtf
- name: Checkout SDL2_rtf
uses: actions/checkout@v4
with:
repository: libsdl-org/SDL_rtf
ref: SDL2
path: external/SDL2_rtf
- name: Setup dependencies
run: |
sudo apt-get update
sudo apt-get install pandoc ninja-build
- name: Configure CMake
run: |
cmake -S .github -B build -DUSE_FIND_PACKAGE=OFF -GNinja
- name: Test markdown/mediawiki syntax
run: |
cd build
ctest --output-on-failure -j$(nproc) -E example
- name: Build examples
if: ${{ always() }}
run: |
cd build
ctest --output-on-failure -j$(nproc) -R example
- name: Upload artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: |
build/wikidir/**