summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2022-04-02 14:34:53 (GMT)
committerGitea <gitea@fake.local>2022-04-02 14:34:53 (GMT)
commit187ea0f06d93c7f7df5779cb321a28ad040234ee (patch)
tree3d6d1b2f60573045734153d975e9b0aa1b327394 /.github
parentadc7909c9823c5cd9fc9888a84e84f9182b9088f (diff)
parentb498e1d633522eed975d78b04508834b7a79befe (diff)
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/config.yml8
-rw-r--r--.github/workflows/lv_sim.yml74
2 files changed, 82 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..e5a555f
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,8 @@
+blank_issues_enabled: true
+contact_links:
+ - name: PineTime community chat (Matrix)
+ url: https://app.element.io/#/room/#pinetime:matrix.org
+ about: Please ask questions about PineTime here.
+ - name: PineTime developers chat (Matrix)
+ url: https://app.element.io/#/room/#pinetime-dev:matrix.org
+ about: Please ask questions about PineTime development here.
diff --git a/.github/workflows/lv_sim.yml b/.github/workflows/lv_sim.yml
new file mode 100644
index 0000000..59ee7b3
--- /dev/null
+++ b/.github/workflows/lv_sim.yml
@@ -0,0 +1,74 @@
+# 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/get-cmake@v3.18.3
+
+ - name: Install SDL2 development package
+ run: |
+ sudo apt-get update
+ sudo apt-get -y install libsdl2-dev
+
+ #########################################################################################
+ # Checkout
+
+ - name: Checkout source files
+ uses: actions/checkout@v2
+ with:
+ submodules: recursive
+
+ #########################################################################################
+ # get InfiniSim repo
+
+ - name: Get InfiniSim repo
+ run: |
+ git clone https://github.com/InfiniTimeOrg/InfiniSim.git --depth 1 --branch main
+ git -C InfiniSim submodule update --init lv_drivers libpng
+
+ #########################################################################################
+ # CMake
+
+ - name: CMake
+ run: |
+ cmake -G Ninja -S InfiniSim -B build_lv_sim -DInfiniTime_DIR="${PWD}"
+
+ #########################################################################################
+ # 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: infinisim
+ path: build_lv_sim/infinisim