Skip to content

Commit 69c4c47

Browse files
aliceisjustplayingactions-user
authored andcommitted
Add linux/arm64 builds with separate self-hosted runners
1 parent 9178779 commit 69c4c47

File tree

2 files changed

+71
-1
lines changed

2 files changed

+71
-1
lines changed
+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Build linux/arm64
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '15 6 * * *'
8+
9+
env:
10+
BUILD_TYPE: MinSizeRel
11+
12+
jobs:
13+
# === Linux arm64 ===
14+
linux-arm64:
15+
runs-on: linux-arm64-alice
16+
container: dtcooper/raspberrypi-os:bookworm
17+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
18+
19+
steps:
20+
- name: Install Host toolchain
21+
run: |
22+
apt update
23+
apt -y install cmake build-essential git doxygen libglu1-mesa-dev freeglut3-dev libpipewire-0.3-dev libwayland-dev libsdl2-dev ruby-dev libcurl4-openssl-dev
24+
25+
- uses: actions/checkout@v4
26+
with:
27+
submodules: recursive
28+
fetch-depth: 0
29+
30+
- name: Build
31+
run: |
32+
cd build
33+
# this is a self-hosted runner issue
34+
# fixes "fatal: detected dubious ownership in repository"
35+
git config --global --add safe.directory '*'
36+
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_SDLGPU=On -DBUILD_WITH_ALL=ON ..
37+
cmake --build . --config MinSizeRel --parallel 1
38+
39+
- name: Deploy
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: "tic80-linux-arm64"
43+
path: |
44+
build/bin/tic80
45+
build/bin/*.so
46+
47+
# === Linux PRO arm64 ===
48+
linux-arm64-pro:
49+
runs-on: linux-arm64-alice
50+
container: dtcooper/raspberrypi-os:bookworm
51+
52+
steps:
53+
- name: Install Host toolchain
54+
run: |
55+
apt update
56+
apt -y install cmake build-essential git doxygen libglu1-mesa-dev freeglut3-dev libpipewire-0.3-dev libwayland-dev libsdl2-dev ruby-dev libcurl4-openssl-dev
57+
58+
- uses: actions/checkout@v4
59+
with:
60+
submodules: recursive
61+
fetch-depth: 0
62+
63+
- name: Build
64+
run: |
65+
cd build
66+
# this is a self-hosted runner issue
67+
# fixes "fatal: detected dubious ownership in repository"
68+
git config --global --add safe.directory '*'
69+
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_PRO=On -DBUILD_SDLGPU=On -DBUILD_WITH_ALL=ON ..
70+
cmake --build . --config MinSizeRel --parallel 1

.github/workflows/sync.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Sync with upstream
22

33
on:
44
schedule:
5-
- cron: '0 * * * *'
5+
- cron: '0 6 * * *'
66

77
jobs:
88
sync:

0 commit comments

Comments
 (0)