Skip to content

rpi build fix

rpi build fix #1331

Workflow file for this run

name: Build
on: [push, pull_request]
env:
BUILD_TYPE: MinSizeRel
jobs:
# === Raspberry PI ===
rpi:
runs-on: ubuntu-latest
container: nesbox/rpi-tic80:latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Install Host toolchain
run: |
apt-get update
apt-get install --assume-yes build-essential ruby-full gcc-8-arm-linux-gnueabihf g++-8-arm-linux-gnueabihf libcurl4-openssl-dev
- name: Build
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_STUB=On -DCMAKE_TOOLCHAIN_FILE=rpi/toolchain.cmake ..
cmake --build . --config $BUILD_TYPE --parallel
cpack
- name: Deploy DEB
uses: actions/upload-artifact@v3
with:
name: "tic80-rpi-dep"
path: build/tic80.deb
- name: Deploy
uses: actions/upload-artifact@v3
with:
name: "tic80-rpi"
path: build/bin/tic80
- name: Deploy stubs
uses: actions/upload-artifact@v3
with:
name: "tic80-rpi-stub"
path: build/bin/tic80*