summaryrefslogtreecommitdiff
path: root/src/libs/lvgl/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/lvgl/.github/workflows')
-rw-r--r--src/libs/lvgl/.github/workflows/build_micropython.yml41
-rw-r--r--src/libs/lvgl/.github/workflows/ccpp.yml18
-rw-r--r--src/libs/lvgl/.github/workflows/main.yml16
-rw-r--r--src/libs/lvgl/.github/workflows/merge-to-dev.yml17
-rw-r--r--src/libs/lvgl/.github/workflows/release.yml27
5 files changed, 119 insertions, 0 deletions
diff --git a/src/libs/lvgl/.github/workflows/build_micropython.yml b/src/libs/lvgl/.github/workflows/build_micropython.yml
new file mode 100644
index 00000000..bbc33f7b
--- /dev/null
+++ b/src/libs/lvgl/.github/workflows/build_micropython.yml
@@ -0,0 +1,41 @@
+name: Build Micropython with LVGL submodule
+
+on:
+ push:
+ branches: [ master, dev ]
+ pull_request:
+ branches: [ master, dev ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Install SDL
+ run: |
+ sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
+ sudo apt-get update -y -qq
+ sudo apt-get install libsdl2-dev
+ - name: Clone lv_micropython
+ run: git clone https://github.com/lvgl/lv_micropython.git .
+ - name: Update submodules
+ run: git submodule update --init --recursive
+ - name: Checkout LVGL submodule
+ working-directory: ./lib/lv_bindings/lvgl
+ run: |
+ git fetch --force ${{ github.event.repository.git_url }} "+refs/heads/*:refs/remotes/origin/*"
+ git fetch --force ${{ github.event.repository.git_url }} "+refs/pull/*:refs/remotes/origin/pr/*"
+ git checkout ${{ github.sha }} || git checkout ${{ github.event.pull_request.head.sha }}
+ git submodule update --init --recursive
+ - name: Build mpy-cross
+ run: make -j $(nproc) -C mpy-cross
+ - name: Build the unix port
+ run: make -j $(nproc) -C ports/unix
+ - name: Run advanced_demo
+ run: >
+ echo "import gc,utime;
+ utime.sleep(5);
+ gc.collect();
+ utime.sleep(5)" |
+ ports/unix/micropython -i lib/lv_bindings/examples/advanced_demo.py
diff --git a/src/libs/lvgl/.github/workflows/ccpp.yml b/src/libs/lvgl/.github/workflows/ccpp.yml
new file mode 100644
index 00000000..f933952b
--- /dev/null
+++ b/src/libs/lvgl/.github/workflows/ccpp.yml
@@ -0,0 +1,18 @@
+name: C/C++ CI
+
+on:
+ push:
+ branches: [ master, dev ]
+ pull_request:
+ branches: [master, dev ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: ammaraskar/gcc-problem-matcher@master
+ - name: Run tests
+ run: sudo apt-get install libpng-dev; cd tests; python ./build.py
diff --git a/src/libs/lvgl/.github/workflows/main.yml b/src/libs/lvgl/.github/workflows/main.yml
new file mode 100644
index 00000000..9c4fc306
--- /dev/null
+++ b/src/libs/lvgl/.github/workflows/main.yml
@@ -0,0 +1,16 @@
+on:
+ issues:
+ types: [opened, edited]
+
+jobs:
+ auto_close_issues:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v1
+ - name: Automatically close issues that don't follow the issue template
+ uses: lucasbento/auto-close-issues@v1.0.2
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ issue-close-message: "@${issue.user.login}: hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template." # optional property
+ closed-issues-label: "not-template"
diff --git a/src/libs/lvgl/.github/workflows/merge-to-dev.yml b/src/libs/lvgl/.github/workflows/merge-to-dev.yml
new file mode 100644
index 00000000..997bb5d2
--- /dev/null
+++ b/src/libs/lvgl/.github/workflows/merge-to-dev.yml
@@ -0,0 +1,17 @@
+name: Merge master branch to dev
+on:
+ push:
+ branches:
+ - 'master'
+jobs:
+ merge-branch:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@master
+ - name: Merge to dev branch
+ uses: devmasx/merge-branch@v1.1.0
+ with:
+ type: now
+ target_branch: 'dev'
+ env:
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
diff --git a/src/libs/lvgl/.github/workflows/release.yml b/src/libs/lvgl/.github/workflows/release.yml
new file mode 100644
index 00000000..b0fab0f5
--- /dev/null
+++ b/src/libs/lvgl/.github/workflows/release.yml
@@ -0,0 +1,27 @@
+on:
+ push:
+ # Sequence of patterns matched against refs/tags
+ tags:
+ - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
+
+name: Create Release
+
+jobs:
+ build:
+ name: Create Release
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+ - name: Create Release
+ id: create_release
+ uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
+ with:
+ tag_name: ${{ github.ref }}
+ release_name: Release ${{ github.ref }}
+ body: |
+ See the [CHANGELOG](https://github.com/lvgl/lvgl/blob/master/CHANGELOG.md)
+ draft: false
+ prerelease: false