[actions] rpi changes #34
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: rpi-aarch64 | |
# make the action not run on the local repo if the branch is also in a pull request to OF/OF | |
on: | |
push: | |
if: github.event_name == 'push' && github.event.pull_request == null | |
paths-ignore: | |
- '**/*.md' | |
- 'examples/**' | |
pull_request: | |
if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks' | |
paths-ignore: | |
- '**/*.md' | |
- 'examples/**' | |
env: | |
ccache: ccache | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
rpi-build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
cfg: | |
# - { libs: armv6l, multistrap_arch: armhf, suffix: arm-linux-gnueabihf, alladdons: 0 } | |
- { libs: aarch64, multistrap_arch: arm64, suffix: aarch64-linux-gnu, alladdons: 0 } | |
env: | |
ARCH: ${{matrix.cfg.libs}} | |
MULTISTRAP_ARCH: ${{matrix.cfg.multistrap_arch}} | |
ALLADDONSEXAMPLE: ${{matrix.cfg.alladdons}} | |
steps: | |
- name: Cache Packages | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: multistrap unzip gcc-${{matrix.cfg.suffix}} g++-${{matrix.cfg.suffix}} | |
version: 1.0 | |
- uses: actions/checkout@v4 | |
- name: ccache | |
uses: hendrikmuhs/ccache-action@v1.2.12 | |
with: | |
key: ${{ matrix.cfg.libs }} | |
- name: Download libs | |
run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}}; | |
- name: Install dependencies | |
run: ./scripts/ci/linuxrpi/install.sh; | |
- name: Build | |
# run: ./scripts/ci/linux${{matrix.cfg.libs}}/build.sh; | |
run: ./scripts/ci/linuxrpi/build.sh; |