Skip to content

Commit

Permalink
[ci] Minor build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jan 14, 2024
1 parent 9ee4c66 commit cfab8a5
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/embedded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Prepare Sysroot
id: pi-sysroot
uses: mariotaku/raspbian-sysroot-action@main
Expand Down Expand Up @@ -136,14 +141,15 @@ jobs:
- name: Install Build Tools
shell: bash
run: sudo apt-get -y -qq install crossbuild-essential-armhf cmake gettext file

- name: Build
run: |
mkdir -p /build || true
mkdir -p /install || true
cmake -S $PWD -B /build \
mkdir -p build || true
mkdir -p install || true
cmake -S $PWD -B build \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/install \
-DCMAKE_INSTALL_PREFIX=$PWD/install \
-DCMAKE_UNITY_BUILD=1 \
-DSCORE_DEPLOYMENT_BUILD=1 \
-DOSSIA_ENABLE_KFR=1 \
Expand All @@ -152,13 +158,13 @@ jobs:
-DSCORE_LINKER_SCRIPT="$PWD/cmake/Deployment/Linux/AppImage/version" \
-DCMAKE_TOOLCHAIN_FILE=${{steps.pi-sysroot.outputs.cmake-toolchain}}
cmake --build /build
cmake --build /build --target install
cmake --build build
cmake --build build --target install
file /install/ossia-score
- name: Upload build
uses: actions/upload-artifact@v2
with:
name: raspberry-pi-bookworm-armhf
path: |
/install/ossia-score
install/ossia-score

0 comments on commit cfab8a5

Please sign in to comment.