summaryrefslogtreecommitdiff
path: root/lib/lvgl/.github/workflows/ccpp.yml
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-06-01 15:41:47 +1000
committerjacqueline <me@jacqueline.id.au>2023-06-01 15:41:47 +1000
commitdd27c3530432ea0b09f01e604bf577f31d8ef841 (patch)
treebbf86cf81a78f0ff0b07f31f1c390db473f26fd3 /lib/lvgl/.github/workflows/ccpp.yml
parent6fd588e970470b15936187980829916d0dbe77bb (diff)
downloadtangara-fw-dd27c3530432ea0b09f01e604bf577f31d8ef841.tar.gz
convert lvgl from submodule to a plain old directory
Diffstat (limited to 'lib/lvgl/.github/workflows/ccpp.yml')
m---------lib/lvgl0
-rw-r--r--lib/lvgl/.github/workflows/ccpp.yml96
2 files changed, 96 insertions, 0 deletions
diff --git a/lib/lvgl b/lib/lvgl
deleted file mode 160000
-Subproject 0732400e7b564dd0e7dc4a924619d8e19c5b23a
diff --git a/lib/lvgl/.github/workflows/ccpp.yml b/lib/lvgl/.github/workflows/ccpp.yml
new file mode 100644
index 00000000..37f46e5c
--- /dev/null
+++ b/lib/lvgl/.github/workflows/ccpp.yml
@@ -0,0 +1,96 @@
+name: C/C++ CI
+
+on:
+ push:
+ branches: [ master, release/v8.* ]
+ pull_request:
+ branches: [ master, release/v8.* ]
+
+jobs:
+ build:
+ if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ # A valid option parameter to the cmake file.
+ # See BUILD_OPTIONS in tests/CMakeLists.txt.
+ build_option: ['OPTIONS_MINIMAL_MONOCHROME',
+ 'OPTIONS_NORMAL_8BIT',
+ 'OPTIONS_16BIT',
+ 'OPTIONS_16BIT_SWAP',
+ 'OPTIONS_FULL_32BIT']
+ name: Build ${{ matrix.build_option }}
+ steps:
+ - uses: actions/checkout@v2
+ - uses: ammaraskar/gcc-problem-matcher@master
+ - name: Install prerequisites
+ run: scripts/install-prerequisites.sh
+ - name: Building ${{ matrix.build_option }}
+ run: python tests/main.py --build-option=${{ matrix.build_option }} build
+
+ test-native:
+ runs-on: ubuntu-latest
+ name: amd64 Executable Tests
+ steps:
+ - uses: actions/checkout@v2
+ - uses: ammaraskar/gcc-problem-matcher@master
+ - name: Install prerequisites
+ run: scripts/install-prerequisites.sh
+ - name: Run tests
+ run: python tests/main.py --report test
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v2
+ if: github.event_name == 'push'
+ with:
+ fail_ci_if_error: true
+ verbose: true
+ test-cross:
+ # The host should always be linux
+ runs-on: ubuntu-latest
+ name: ${{ matrix.arch }} Executable Tests
+
+ # Run steps on a matrix of 3 arch/distro combinations
+ strategy:
+ matrix:
+ arch: [ 'aarch64', 'armv6', 'armv7' ]
+
+ steps:
+ - uses: actions/checkout@v2.1.0
+ - uses: ammaraskar/gcc-problem-matcher@master
+ - name: Setup cache
+ uses: actions/cache@v2
+ with:
+ path: |
+ ~/.ccache
+ key: lvgl_ci_cross_test_ccache_${{ matrix.arch }}_${{ github.sha }}
+ restore-keys: |
+ lvgl_ci_cross_test_ccache_${{ matrix.arch }}
+ - uses: uraimo/run-on-arch-action@v2.1.1
+ name: Run tests
+ id: build
+ with:
+ arch: ${{ matrix.arch }}
+ distro: bullseye
+
+ # Not required, but speeds up builds
+ githubToken: ${{ github.token }}
+
+ # The shell to run commands with in the container
+ shell: /bin/bash
+
+ # Create cached/volume directories on host
+ setup: |
+ mkdir -p ~/.ccache
+
+ # Mount cached directories in the container for faster builds
+ dockerRunArgs: |
+ --volume "${HOME}/.ccache:/root/.ccache"
+
+ install: |
+ apt-get update -y
+ apt-get install build-essential ccache python3 libpng-dev ruby-full gcovr cmake -q -y
+ /usr/sbin/update-ccache-symlinks
+ echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
+
+ run: |
+ env PATH="/usr/lib/ccache:$PATH" ASAN_OPTIONS=detect_leaks=0 python3 tests/main.py test