-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
55 lines (48 loc) · 1.6 KB
/
build-rpi-aarch64-b.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
name: rpi-aarch64-alladdons
# make the action not run on the local repo if the branch is also in a pull request to OF/OF
on:
push:
if: github.event_name == 'push' && github.event.pull_request == null
paths-ignore:
- '**/*.md'
- 'examples/**'
pull_request:
if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks'
paths-ignore:
- '**/*.md'
- 'examples/**'
env:
ccache: ccache
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rpi-build:
runs-on: ubuntu-latest
strategy:
matrix:
cfg:
# - { libs: armv6l, multistrap_arch: armhf, suffix: arm-linux-gnueabihf, alladdons: 0 }
- { libs: aarch64, multistrap_arch: arm64, suffix: aarch64-linux-gnu, alladdons: 1 }
env:
ARCH: ${{matrix.cfg.libs}}
MULTISTRAP_ARCH: ${{matrix.cfg.multistrap_arch}}
ALLADDONSEXAMPLE: ${{matrix.cfg.alladdons}}
steps:
- name: Cache Packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: multistrap unzip gcc-${{matrix.cfg.suffix}} g++-${{matrix.cfg.suffix}}
version: 1.0
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.cfg.libs }}
- name: Download libs
run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}};
- name: Install dependencies
run: ./scripts/ci/linuxrpi/install.sh;
- name: Build
# run: ./scripts/ci/linux${{matrix.cfg.libs}}/build.sh;
run: ./scripts/ci/linuxrpi/build.sh;