-
Notifications
You must be signed in to change notification settings - Fork 11
61 lines (58 loc) · 1.44 KB
/
Build.yml
File metadata and controls
61 lines (58 loc) · 1.44 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build
on:
pull_request:
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
build:
runs-on: ${{ matrix.os[0] }}
strategy:
matrix:
os: [
[macos-latest, arm64, bash],
[macos-15-intel, x86_64, bash],
[ubuntu-latest, x86_64, bash],
[ubuntu-24.04-arm, arm64, bash]
]
fail-fast: false
defaults:
run:
shell: ${{ matrix.os[2] }} {0}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- &setup_pspdev
name: Setup PSPDEV Environment
run: |
.github/scripts/setup_pspdev.sh "${{ matrix.os[0] }}" "${{ matrix.os[1] }}"
- name: Runs build in shell
run: |
set -euo pipefail
make
make install
- name: Build all samples (Vanilla Makefile)
run: |
set -euo pipefail
for d in samples/*/ ; do
if [ -f "$d/makefile" ] || [ -f "$d/Makefile" ]; then
echo "Building $d"
make -C "$d"
fi
done
- name: Build all samples (CMake)
run: |
set -euo pipefail
for d in samples/*/ ; do
if [ -f "$d/CMakeLists.txt" ]; then
echo "Building (CMake) $d"
(
cd "$d"
cmake --preset psp
cmake --build --preset psp -j
)
fi
done