ci: add 8bit build option (#7574)
This commit is contained in:
50
.github/workflows/ccpp.yml
vendored
50
.github/workflows/ccpp.yml
vendored
@@ -13,19 +13,21 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-ubuntu:
|
||||||
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
|
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# A valid option parameter to the cmake file.
|
# A valid option parameter to the cmake file.
|
||||||
# See BUILD_OPTIONS in tests/CMakeLists.txt.
|
# See BUILD_OPTIONS in tests/CMakeLists.txt.
|
||||||
build_option: ['OPTIONS_16BIT',
|
build_option: ['OPTIONS_NORMAL_8BIT',
|
||||||
|
'OPTIONS_16BIT',
|
||||||
'OPTIONS_24BIT',
|
'OPTIONS_24BIT',
|
||||||
'OPTIONS_FULL_32BIT',
|
'OPTIONS_FULL_32BIT',
|
||||||
'OPTIONS_VG_LITE',
|
'OPTIONS_VG_LITE',
|
||||||
'OPTIONS_SDL']
|
'OPTIONS_SDL']
|
||||||
name: Build ${{ matrix.build_option }}
|
name: Build ${{ matrix.build_option }} - Ubuntu
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ammaraskar/gcc-problem-matcher@master
|
- uses: ammaraskar/gcc-problem-matcher@master
|
||||||
@@ -34,36 +36,42 @@ jobs:
|
|||||||
- name: Building ${{ matrix.build_option }}
|
- name: Building ${{ matrix.build_option }}
|
||||||
run: python tests/main.py --build-option=${{ matrix.build_option }} build --auto-clean
|
run: python tests/main.py --build-option=${{ matrix.build_option }} build --auto-clean
|
||||||
|
|
||||||
build-windows-GCC:
|
build-windows:
|
||||||
runs-on: windows-2022
|
strategy:
|
||||||
name: Build Windows GCC
|
fail-fast: false
|
||||||
steps:
|
matrix:
|
||||||
- uses: actions/checkout@v4
|
# A valid option parameter to the cmake file.
|
||||||
- uses: ammaraskar/gcc-problem-matcher@master
|
# See BUILD_OPTIONS in tests/CMakeLists.txt.
|
||||||
- name: Install prerequisites
|
build_option: ['OPTIONS_16BIT',
|
||||||
run: scripts\install-prerequisites.bat
|
'OPTIONS_24BIT',
|
||||||
- name: Build
|
'OPTIONS_FULL_32BIT',
|
||||||
run: python tests/main.py build
|
'OPTIONS_VG_LITE']
|
||||||
env:
|
compiler: [gcc, cl]
|
||||||
CC: gcc
|
|
||||||
|
|
||||||
build-windows-MSVC:
|
name: Build ${{ matrix.build_option }} - ${{matrix.compiler }} - Windows
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
name: Build Windows MSVC
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
run: scripts\install-prerequisites.bat
|
run: scripts\install-prerequisites.bat
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
|
||||||
|
- if: matrix.compiler == 'gcc'
|
||||||
|
uses: ammaraskar/gcc-problem-matcher@master
|
||||||
|
|
||||||
|
- if: matrix.compiler == 'cl'
|
||||||
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
with:
|
with:
|
||||||
arch: x64
|
arch: x64
|
||||||
- uses: ruby/setup-ruby@v1
|
|
||||||
|
- if: matrix.compiler == 'cl'
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 'mswin'
|
ruby-version: 'mswin'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: python tests/main.py build
|
run: python tests/main.py --build-option=${{ matrix.build_option }} build
|
||||||
env:
|
env:
|
||||||
CC: cl
|
CC: ${{ matrix.compiler }}
|
||||||
|
|
||||||
build-esp32s3:
|
build-esp32s3:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ from LVGLImage import LVGLImage, ColorFormat, CompressMethod
|
|||||||
|
|
||||||
# Key values must match variable names in CMakeLists.txt.
|
# Key values must match variable names in CMakeLists.txt.
|
||||||
build_only_options = {
|
build_only_options = {
|
||||||
# 'OPTIONS_NORMAL_8BIT': 'Normal config, 8 bit color depth',
|
'OPTIONS_NORMAL_8BIT': 'Normal config, 8 bit color depth',
|
||||||
'OPTIONS_16BIT': 'Minimal config, 16 bit color depth',
|
'OPTIONS_16BIT': 'Minimal config, 16 bit color depth',
|
||||||
'OPTIONS_24BIT': 'Normal config, 24 bit color depth',
|
'OPTIONS_24BIT': 'Normal config, 24 bit color depth',
|
||||||
'OPTIONS_FULL_32BIT': 'Full config, 32 bit color depth',
|
'OPTIONS_FULL_32BIT': 'Full config, 32 bit color depth',
|
||||||
|
|||||||
Reference in New Issue
Block a user