Skip to content

Enable dark mode depending on device state #387

Enable dark mode depending on device state

Enable dark mode depending on device state #387

Workflow file for this run

name: quality-assurance-checks
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
BUILDROOT: ${GITHUB_WORKSPACE}/SDK_6.8.0
TOOLCHAIN_PATH: ${GITHUB_WORKSPACE}/SDK_6.8.0/SDK-B288/usr
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Install build dependencies
run: |
sudo apt-get update -
sudo apt-get install --no-install-recommends -y \
build-essential \
ca-certificates \
clang \
clang-format \
git \
libtinfo5 \
meson \
python3-jinja2 \
wget
- name: Install PocketBook SDK
run: |
./scripts/install_sdk.sh
- name: Generate cross-compilation configuration
run: |
./scripts/generate_cross_compilation_conf.sh
- name: Load cached dependencies
id: cached-qa-dependencies
uses: actions/cache@v3
with:
path: SDK_6.8.0
key: qa-${{ runner.os }}-${{ hashFiles('**/meson.build') }}
- name: Optionally build dependencies
if: steps.cached-qa-dependencies.outputs.cache-hit != 'true'
env:
CC: ${BUILDROOT}/SDK-B288/usr/bin/arm-obreey-linux-gnueabi-clang
CCX: ${BUILDROOT}/SDK-B288/usr/bin/arm-obreey-linux-gnueabi-clang++
AR: ${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar
STRIP: ${BUILDROOT}/SDK-B288/usr/bin/arm-obreey-linux-gnueabi-strip
RANLIB: ${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib
PKGCONFIG: ${TOOLCHAIN_PATH}/bin/pkg-config
CFLAGS: -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
run: |
cd 3rd-parties
wget https://ftp.gnu.org/gnu/gsl/gsl-2.7.1.tar.gz
tar -xzf gsl-2.7.1.tar.gz
cd gsl-2.7.1
./configure --prefix=$PWD/../../SDK_6.8.0/SDK-B288/usr/arm-obreey-linux-gnueabi/sysroot \
--host=arm-obreey-linux-gnueabi \
--build=x86_64-pc-linux-gnu \
--target=arm-obreey-linux-gnueabi \
make -j2
make install
- name: Run format check
env:
CC: ${BUILDROOT}/SDK-B288/usr/bin/arm-obreey-linux-gnueabi-clang
CCX: ${BUILDROOT}/SDK-B288/usr/bin/arm-obreey-linux-gnueabi-clang++
AR: ${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar
STRIP: ${BUILDROOT}/SDK-B288/usr/bin/arm-obreey-linux-gnueabi-strip
RANLIB: ${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib
PKGCONFIG: ${TOOLCHAIN_PATH}/bin/pkg-config
CFLAGS: -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
run: |
meson setup builddir . --cross-file crossfile_arm.ini
ninja -C builddir clang-format-check