-
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (51 loc) · 1.71 KB
/
build_playdate.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
# Controls when the workflow will run
on:
# Allows you to run this workflow manually ftarget the Actions tab
workflow_dispatch:
jobs:
build:
strategy:
matrix:
include:
- { pdx: Rubido.pdx, env: playdate }
runs-on: ubuntu-latest
steps:
# ==== dependencies ====
- name: Install Make
run: sudo apt-get install -y make
- name: Install CMake
run: sudo apt-get install -y cmake
- name: Install gcc-arm-none-eabi
run: sudo apt-get install -y gcc-arm-none-eabi
# ==== Build Steps ====
- name: Check out Sources
uses: actions/checkout@v3
- name: Grab Playdate SDK
uses: wei/wget@v1
with:
args: -O PlaydateSDK-latest.tar.gz https://download.panic.com/playdate_sdk/Linux/PlaydateSDK-latest.tar.gz
- name: Extract Playdate SDK
run: |
tar -xvf "PlaydateSDK-latest.tar.gz"
rm -f "PlaydateSDK-latest.tar.gz"
mv PlaydateSDK-* PlaydateSDK
- name: remove alternate Source folder
run: |
rm -rf Source/Source1
- name: Build
run: |
export PLAYDATE_SDK_PATH="$PWD/PlaydateSDK/"
echo SDK Path: $PLAYDATE_SDK_PATH
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$PLAYDATE_SDK_PATH/C_API/buildsupport/arm.cmake ..
make
- name: Prepare Artifact directory
run: |
mkdir output
mv ${{matrix.pdx}} output/
- name: Store build
uses: actions/upload-artifact@v3
with:
name: Rubido ${{matrix.env}}
path: output