Linux64 / Linux armv6/armv7/arm64 - Configure build list #714
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-linux-arm | |
on: | |
push: | |
paths-ignore: | |
- "**/README.md" | |
pull_request: | |
paths-ignore: | |
- "**/README.md" | |
jobs: | |
build-linux-aarch64: | |
runs-on: ubuntu-latest | |
env: | |
TARGET: linuxaarch64 | |
ARCH: arm64 | |
WORKDIR: "/home/runner/work/apothecary/apothecary" | |
SYSROOT: "/home/runner/work/apothecary/apothecary/raspbian" | |
TOOLCHAIN_ROOT: "/home/runner/work/apothecary/apothecary/raspbian" | |
TOOLCHAIN_PREFIX: "aarch64-linux-gnu" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache raspbian folder | |
uses: actions/cache@v2 | |
with: | |
path: /home/runner/work/apothecary/apothecary/raspbian | |
key: raspbian-cache-2 | |
- name: Check if folder exists | |
id: folder-check | |
run: > | |
if [ -d $SYSROOT ]; then | |
echo "Raspbian folder already exists. Skipping download and extract." | |
echo "::set-output name=folder-exists::true" | |
else | |
echo "::set-output name=folder-exists::false" | |
fi | |
- name: Download and extract tar file | |
if: steps.folder-check.outputs.folder-exists == 'false' | |
run: > | |
cd $WORKDIR && wget "https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Bonus%20Raspberry%20Pi%20GCC%2064-Bit%20Toolchains/Raspberry%20Pi%20GCC%2064-Bit%20Cross-Compiler%20Toolchains/Bookworm/GCC%2014.2.0/cross-gcc-14.2.0-pi_64.tar.gz/download" -O cross-gcc-14.2.0-pi_64.tar.gz && tar xf cross-gcc-14.2.0-pi_64.tar.gz &&rm cross-gcc-14.2.0-pi_64.tar.gz &&mv cross-pi-gcc-14.2.0-64 raspbian | |
- name: Script Install and Build | |
run: ./scripts/$TARGET/install_and_build.sh | |
- name: Update Release | |
uses: johnwbyrd/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: nightly | |
release: nightly | |
prerelease: false | |
files: out/openFrameworksLibs_master_linuxaarch64.tar.bz2 | |
if: github.repository == 'openframeworks/apothecary' && github.event_name == 'push' && github.ref == 'refs/heads/master' | |
build-linux-armv6l-pi-1zero: | |
runs-on: ubuntu-latest | |
env: | |
TARGET: linuxarmv6l | |
ARCH: armv6 | |
WORKDIR: "/home/runner/work/apothecary/apothecary" | |
SYSROOT: "/home/runner/work/apothecary/apothecary/raspbianpi1zero" | |
TOOLCHAIN_ROOT: "/home/runner/work/apothecary/apothecary/raspbianpi1zero" | |
TOOLCHAIN_PREFIX: "arm-linux-gnueabihf" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache raspbian folder | |
uses: actions/cache@v2 | |
with: | |
path: /home/runner/work/apothecary/apothecary/raspbianpi1zero | |
key: raspbian-pi1zero-cache-2 | |
- name: Check if folder exists | |
id: folder-check | |
run: > | |
if [ -d $SYSROOT ]; then | |
echo "Raspbian folder already exists. Skipping download and extract." | |
echo "::set-output name=folder-exists::true" | |
else | |
echo "::set-output name=folder-exists::false" | |
fi | |
- name: Download and extract tar file | |
if: steps.folder-check.outputs.folder-exists == 'false' | |
run: > | |
cd $WORKDIR && | |
wget "https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Bookworm/GCC%2014.2.0/Raspberry%20Pi%201%2C%20Zero/cross-gcc-14.2.0-pi_0-1.tar.gz/download" -O cross-gcc-14.2.0-pi_0-1.tar.gz && tar xf cross-gcc-14.2.0-pi_0-1.tar.gz && rm cross-gcc-14.2.0-pi_0-1.tar.gz && mv cross-pi-gcc-14.2.0-0 raspbianpi1zero | |
- name: Ensure Script is Executable | |
run: chmod +x ./scripts/$TARGET/install_and_build.sh | |
- name: Script Install and Build | |
run: ./scripts/$TARGET/install_and_build.sh | |
- name: Update Release | |
uses: johnwbyrd/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: nightly | |
release: nightly | |
prerelease: false | |
files: out/openFrameworksLibs_master_linuxarmv6l.tar.bz2 | |
if: github.repository == 'openframeworks/apothecary' && github.event_name == 'push' && github.ref == 'refs/heads/master' | |
build-linux-armv7-pi3ab45: | |
runs-on: ubuntu-latest | |
env: | |
TARGET: linuxarmv7l | |
ARCH: armv7 | |
WORKDIR: "/home/runner/work/apothecary/apothecary" | |
SYSROOT: "/home/runner/work/apothecary/apothecary/raspbianpi3ab45" | |
TOOLCHAIN_ROOT: "/home/runner/work/apothecary/apothecary/raspbianpi3ab45" | |
TOOLCHAIN_PREFIX: "arm-linux-gnueabihf" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache raspbian folder | |
uses: actions/cache@v2 | |
with: | |
path: /home/runner/work/apothecary/apothecary/raspbianpi3ab45 | |
key: raspbian-pi3ab45-cache-2 | |
- name: Check if folder exists | |
id: folder-check | |
run: > | |
if [ -d $SYSROOT ]; then | |
echo "Raspbian folder already exists. Skipping download and extract." | |
echo "::set-output name=folder-exists::true" | |
else | |
echo "::set-output name=folder-exists::false" | |
fi | |
- name: Download and extract tar file | |
if: steps.folder-check.outputs.folder-exists == 'false' | |
run: > | |
cd $WORKDIR && | |
wget "https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%2014.2.0/Raspberry%20Pi%203A%2B%2C%203B%2B%2C%204%2C%205/cross-gcc-14.2.0-pi_3%2B.tar.gz/download" -O cross-gcc-14.2.0-pi_3+.tar.gz && tar xf cross-gcc-14.2.0-pi_3+.tar.gz && rm cross-gcc-14.2.0-pi_3+.tar.gz && mv cross-pi-gcc-14.2.0-2 raspbianpi3ab45 | |
- name: Ensure Script is Executable | |
run: chmod +x ./scripts/$TARGET/install_and_build.sh | |
- name: Script Install and Build | |
run: ./scripts/$TARGET/install_and_build.sh | |
- name: Update Release | |
uses: johnwbyrd/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: nightly | |
release: nightly | |
prerelease: false | |
files: out/openFrameworksLibs_master_linuxarmv7l.tar.bz2 | |
if: github.repository == 'openframeworks/apothecary' && github.event_name == 'push' && github.ref == 'refs/heads/master' | |
# build-linux-arm6: | |
# runs-on: ubuntu-latest | |
# env: | |
# TARGET: "linuxarmv6l" | |
# ARCH: armv6l | |
# SYSROOT: "/home/runner/work/apothecary/apothecary/scripts/linuxarmv6l/raspbian" | |
# TOOLCHAIN_ROOT: "/home/runner/work/apothecary/apothecary/scripts/linuxarmv6l/rpi_toolchain" | |
# TOOLCHAIN_PREFIX: "arm-linux-gnueabihf" | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Scripts Calc Formula | |
# run: ./scripts/calculate_formulas.sh | |
# - name: Scripts Install | |
# run: ./scripts/$TARGET/install.sh | |
# - name: build | |
# run: ./scripts/build.sh | |
# env: | |
# GA_CI_SECRET: ${{ secrets.CI_SECRET }} | |
# - name: Update Release | |
# uses: johnwbyrd/[email protected] | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# tag: nightly | |
# release: nightly | |
# prerelease: false | |
# files: out/openFrameworksLibs_master_linuxarmv6l.tar.bz2 | |
# if: github.repository == 'openframeworks/apothecary' && github.event_name == 'push' && github.ref == 'refs/heads/master' | |
# build-linux-arm7: | |
# runs-on: ubuntu-latest | |
# environment: CI | |
# env: | |
# TARGET: "linuxarmv7l" | |
# SYSROOT: "/home/runner/archlinux" | |
# TOOLCHAIN_ROOT: "/home/runner/rpi2_toolchain" | |
# TOOLCHAIN_PREFIX: "arm-linux-gnueabihf" | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Scripts Calc Formula | |
# run: ./scripts/calculate_formulas.sh | |
# - name: Scripts Install | |
# run: ./scripts/$TARGET/install.sh | |
# - name: build | |
# run: ./scripts/build.sh | |
# env: | |
# GA_CI_SECRET: ${{ secrets.CI_SECRET }} | |
# - name: Update Release | |
# uses: johnwbyrd/[email protected] | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# tag: nightly | |
# release: nightly | |
# prerelease: false | |
# files: out/openFrameworksLibs_master_linuxarmv7l.tar.bz2 | |
# if: github.repository == 'openframeworks/apothecary' && github.event_name == 'push' && github.ref == 'refs/heads/master' |