forked from hasscontrol/hasscontrol
-
-
Notifications
You must be signed in to change notification settings - Fork 19
50 lines (39 loc) · 1.22 KB
/
ci.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
name: Makefile CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Get devices
run: |
cd ~
wget https://hatl.at/devices.zip
unzip -qq devices.zip
- name: Get SDK
run: |
mkdir ~/sdk
cd ~/sdk
wget https://developer.garmin.com/downloads/connect-iq/sdks/connectiq-sdk-lin-6.4.2-2024-01-04-a1dd13ee0.zip
unzip -qq connectiq-sdk-lin-6.4.2-2024-01-04-a1dd13ee0.zip
echo ~/sdk/bin >> $GITHUB_PATH
- name: Set SDK location
run: |
cd widget
echo "sdk.location=~/sdk" > local.properties
- name: Generate developer key
run: |
openssl genrsa -out ~/developer_key.pem 4096
openssl pkcs8 -topk8 -inform PEM -outform DER -in ~/developer_key.pem -out ~/developer_key.der -nocrypt
- name: Build prg file
run: |
cd widget
monkeyc -y ~/developer_key.der -f monkey.jungle -w -o /tmp/output.prg
- name: Build iq file
run: |
cd widget
monkeyc -y ~/developer_key.der -f monkey.jungle -w -e -o /tmp/output.iq