build-application #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-application | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Git tag of version to build' | |
required: true | |
type: string | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
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 \ | |
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: Build dependencies | |
run: | | |
source ./SDK_6.8.0/env_set.sh | |
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: Build application | |
run: | | |
source ./SDK_6.8.0/env_set.sh | |
meson setup builddir . \ | |
--cross-file crossfile_arm.ini \ | |
--buildtype=release \ | |
--strip | |
pushd builddir | |
DESTDIR=artifact meson install | |
meson compile installer | |
meson compile archive | |
meson compile sha | |
- name: Upload archive | |
uses: actions/upload-artifact@v4 | |
with: | |
path: builddir/artifact | |
if-no-files-found: error | |