Skip to content

Commit f53e750

Browse files
authored
Merge CI to deduplicate events (#1279)
1 parent 69563ed commit f53e750

File tree

2 files changed

+42
-81
lines changed

2 files changed

+42
-81
lines changed

.github/workflows/lv_sim.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
# GitHub Actions Workflow to build FreeRTOS Firmware for PineTime Smart Watch
2-
# See https://lupyuen.github.io/pinetime-rust-mynewt/articles/cloud
3-
# Based on https://github.com/JF002/InfiniTime/blob/master/doc/buildAndProgram.md
4-
# and https://github.com/JF002/InfiniTime/blob/master/bootloader/README.md
5-
6-
name: Build PineTime Firmware
1+
name: CI
72

3+
# Run this workflow whenever the build may be affected
84
on:
95
push:
106
branches: [ master, develop ]
@@ -14,11 +10,9 @@ on:
1410
branches: [ develop ]
1511
paths-ignore:
1612
- 'doc/**'
17-
# Allows you to run this workflow manually from the Actions tab
18-
workflow_dispatch:
1913

2014
jobs:
21-
build:
15+
build-firmware:
2216
runs-on: ubuntu-latest
2317
container:
2418
image: infinitime/infinitime-build
@@ -51,3 +45,42 @@ jobs:
5145
with:
5246
name: InfiniTime MCUBoot image ${{ github.head_ref }}
5347
path: ./build/output/pinetime-mcuboot-app-image-*.bin
48+
49+
build-simulator:
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Install cmake
53+
uses: lukka/[email protected]
54+
55+
- name: Install SDL2 development package
56+
run: |
57+
sudo apt-get update
58+
sudo apt-get -y install libsdl2-dev
59+
60+
- name: Install lv_font_conv
61+
run:
62+
63+
64+
- name: Checkout source files
65+
uses: actions/checkout@v2
66+
with:
67+
submodules: recursive
68+
69+
- name: Get InfiniSim repo
70+
run: |
71+
git clone https://github.com/InfiniTimeOrg/InfiniSim.git --depth 1 --branch main
72+
git -C InfiniSim submodule update --init lv_drivers libpng
73+
74+
- name: CMake
75+
run: |
76+
cmake -G Ninja -S InfiniSim -B build_lv_sim -DInfiniTime_DIR="${PWD}"
77+
78+
- name: Build simulator executable
79+
run: |
80+
cmake --build build_lv_sim
81+
82+
- name: Upload simulator executable
83+
uses: actions/upload-artifact@v3
84+
with:
85+
name: infinisim-${{ github.head_ref }}
86+
path: build_lv_sim/infinisim

0 commit comments

Comments
 (0)