-
-
Notifications
You must be signed in to change notification settings - Fork 926
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69066e7
commit 631fb2a
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# GitHub Actions Workflow to build Simulator for PineTime Smart Watch LVGL Interface | ||
|
||
# Name of this Workflow | ||
name: Build PineTime LVGL Simulator | ||
|
||
# When to run this Workflow... | ||
on: | ||
|
||
# Run on all branches | ||
push: | ||
branches: [] | ||
|
||
# Also run this Workflow when a Pull Request is created or updated in the "master" and "develop" Branch | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
# Steps to run for the Workflow | ||
jobs: | ||
build: | ||
|
||
# Run these steps on Ubuntu | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
######################################################################################### | ||
# Download and Install Dependencies | ||
|
||
- name: Install cmake | ||
uses: lukka/[email protected] | ||
|
||
- name: Install SDL2 development package | ||
run: | | ||
sudo apt-get -y install libsdl2-dev | ||
######################################################################################### | ||
# Checkout | ||
|
||
- name: Checkout source files | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
######################################################################################### | ||
# CMake | ||
|
||
- name: CMake | ||
run: | | ||
cmake -G Ninja -S lv_sim -B build build_lv_sim | ||
######################################################################################### | ||
# Build and Upload simulator | ||
|
||
# For Debugging Builds: Remove "make" option "-j" for clearer output. Add "--trace" to see details. | ||
# For Faster Builds: Add "make" option "-j" | ||
|
||
- name: Build simulator executable | ||
run: | | ||
cmake --build build_lv_sim | ||
- name: Upload simulator executable | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: pinesim | ||
path: build_lv_sim/pinesim |