rpi build fix #1334
Workflow file for this run
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 | |
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 | |
- 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* |