Testing scripts/games_and_emulators/SRB2.sh #69
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: Test_Build | |
# Controls when the workflow will run | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
inputs: | |
name: | |
description: 'Helper Script name format' | |
required: true | |
default: '' | |
buster_64: | |
description: 'Build on PiOS Buster 64bit' | |
required: true | |
type: boolean | |
bullseye_64: | |
description: 'Build on PiOS Bullseye 64bit' | |
required: true | |
type: boolean | |
bookworm_32: | |
description: 'Build on PiOS Bookworm 32bit' | |
required: true | |
type: boolean | |
bookworm_64: | |
description: 'Build on PiOS Bookworm 64bit' | |
required: true | |
type: boolean | |
bionic_64: | |
description: 'Build on Switchroot Ubuntu 5.1.1 Bionic 64bit' | |
required: true | |
type: boolean | |
focal_64: | |
description: 'Build on Nvidia Jetpack 35.3.1 Focal 64bit' | |
required: true | |
type: boolean | |
jammy_64: | |
description: 'Build on RPI Ubuntu Jammy 64bit' | |
required: true | |
type: boolean | |
l4t_jammy_64: | |
description: 'Build on L4T Ubuntu Jammy 64bit' | |
required: true | |
type: boolean | |
fedora_37_64: | |
description: 'Build on L4S Fedora 37 64bit' | |
required: true | |
type: boolean | |
run-name: Testing ${{ inputs.name }} | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
buster-64bit: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
timeout-minutes: 720 | |
if: ${{ inputs.buster_64 }} | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- name: Test installing app on buster arm64 | |
uses: theofficialgman/arm-runner-action@v12 | |
with: | |
# this is a buster arm64 image | |
base_image: https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2021-05-28/2021-05-07-raspios-buster-arm64.zip | |
# bind mount the directory so any changes propogate to outside the chroot | |
bind_mount_repository: yes | |
# give the image more space | |
image_additional_mb: 5000 | |
# set CPUs to use | |
cpu: cortex-a7:cortex-a72 | |
# user runner name as default path | |
copy_repository_path: /home/runner/L4T-Megascript | |
# export github env back to outside the chroot | |
export_github_env: yes | |
import_github_env: true | |
# set shell to bash | |
shell: /bin/bash | |
commands: | | |
export name="${{ inputs.name }}" | |
# since stable Debian releases tend to have outdated libraries, we'll enable the backports repo here to get some slightly newer stuff needed for a few scripts | |
echo "deb http://deb.debian.org/debian buster-backports main contrib non-free" | sudo tee -a /etc/apt/sources.list | |
./.github/workflows/test_build_commands.sh | |
bullseye-64bit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 720 | |
if: ${{ inputs.bullseye_64 }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test installing app on bullseye arm64 | |
uses: theofficialgman/arm-runner-action@v12 | |
with: | |
base_image: https://downloads.raspberrypi.org/raspios_oldstable_arm64/images/raspios_oldstable_arm64-2023-12-06/2023-12-05-raspios-bullseye-arm64.img.xz | |
bind_mount_repository: yes | |
image_additional_mb: 5000 | |
cpu: cortex-a7:cortex-a72 | |
copy_repository_path: /home/runner/L4T-Megascript | |
export_github_env: yes | |
import_github_env: true | |
shell: /bin/bash | |
commands: | | |
export name="${{ inputs.name }}" | |
echo "deb http://deb.debian.org/debian bullseye-backports main contrib non-free" | sudo tee -a /etc/apt/sources.list | |
./.github/workflows/test_build_commands.sh | |
bookworm-32bit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 720 | |
if: ${{ inputs.bookworm_32 }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test installing app on bookworm armhf | |
uses: theofficialgman/arm-runner-action@v12 | |
with: | |
base_image: https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2023-12-06/2023-12-05-raspios-bookworm-armhf.img.xz | |
bind_mount_repository: yes | |
image_additional_mb: 5000 | |
cpu: cortex-a7:cortex-a72 | |
copy_repository_path: /home/runner/L4T-Megascript | |
export_github_env: yes | |
import_github_env: true | |
shell: /bin/bash | |
commands: | | |
export name="${{ inputs.name }}" | |
echo "deb http://deb.debian.org/debian bookworm-backports main contrib non-free" | sudo tee -a /etc/apt/sources.list | |
./.github/workflows/test_build_commands.sh | |
bookworm-64bit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 720 | |
if: ${{ inputs.bookworm_64 }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test installing app on bookworm arm64 | |
uses: theofficialgman/arm-runner-action@v12 | |
with: | |
base_image: https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2023-12-06/2023-12-05-raspios-bookworm-arm64.img.xz | |
bind_mount_repository: yes | |
image_additional_mb: 5000 | |
cpu: cortex-a7:cortex-a72 | |
copy_repository_path: /home/runner/L4T-Megascript | |
export_github_env: yes | |
import_github_env: true | |
shell: /bin/bash | |
commands: | | |
export name="${{ inputs.name }}" | |
echo "deb http://deb.debian.org/debian bookworm-backports main contrib non-free" | sudo tee -a /etc/apt/sources.list | |
./.github/workflows/test_build_commands.sh | |
bionic-64bit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 720 | |
if: ${{ inputs.bionic_64 }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test installing app on bionic arm64 | |
uses: theofficialgman/arm-runner-action@v12 | |
with: | |
base_image: https://download.switchroot.org/ubuntu/switchroot-ubuntu-5.1.1-2023-06-12.7z | |
# add special arguments for switchroot image format | |
bootpartition: | |
rootpartition: 1 | |
bind_mount_repository: yes | |
image_additional_mb: 5000 | |
# use TX1 ARM CPU cores | |
cpu: cortex-a7:cortex-a57 | |
copy_repository_path: /home/runner/L4T-Megascript | |
export_github_env: yes | |
import_github_env: true | |
shell: /bin/bash | |
commands: | | |
export name="${{ inputs.name }}" | |
./.github/workflows/test_build_commands.sh | |
focal-64bit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 720 | |
if: ${{ inputs.focal_64 }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Clear up some disk space | |
run: | | |
# Workaround to provide additional free space for testing. | |
# https://github.com/actions/virtual-environments/issues/2840 | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
- name: Test installing app on focal arm64 | |
uses: theofficialgman/arm-runner-action@v12 | |
with: | |
base_image: https://developer.nvidia.com/downloads/embedded/l4t/r35_release_v3.1/sd_card_b49/jp511-xnx-sd-card-image.zip | |
bootpartition: | |
rootpartition: 1 | |
bind_mount_repository: yes | |
image_additional_mb: 5000 | |
enable_image_caching: no | |
cpu: cortex-a7:cortex-a72 | |
copy_repository_path: /home/runner/L4T-Megascript | |
export_github_env: yes | |
import_github_env: true | |
shell: /bin/bash | |
commands: | | |
export name="${{ inputs.name }}" | |
./.github/workflows/test_build_commands.sh | |
jammy-64bit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 720 | |
if: ${{ inputs.jammy_64 }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test installing app on jammy arm64 | |
uses: theofficialgman/arm-runner-action@v12 | |
with: | |
base_image: https://cdimage.ubuntu.com/releases/22.04.3/release/ubuntu-22.04.3-preinstalled-desktop-arm64+raspi.img.xz | |
bind_mount_repository: yes | |
image_additional_mb: 5000 | |
cpu: cortex-a7:cortex-a72 | |
copy_repository_path: /home/runner/L4T-Megascript | |
export_github_env: yes | |
import_github_env: true | |
shell: /bin/bash | |
commands: | | |
export name="${{ inputs.name }}" | |
./.github/workflows/test_build_commands.sh | |
l4t-jammy-64bit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 720 | |
if: ${{ inputs.l4t_jammy_64 }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test installing app on L4T jammy arm64 | |
uses: theofficialgman/arm-runner-action@v12 | |
with: | |
base_image: https://download.switchroot.org/ubuntu-jammy/theofficialgman-ubuntu-jammy-5.1.2-2023-09-18.7z | |
# add special arguments for switchroot image format | |
bootpartition: | |
rootpartition: 1 | |
bind_mount_repository: yes | |
image_additional_mb: 5000 | |
# use TX1 ARM CPU cores | |
cpu: cortex-a7:cortex-a57 | |
copy_repository_path: /home/runner/pi-apps | |
export_github_env: yes | |
import_github_env: true | |
shell: /bin/bash | |
commands: | | |
export name="${{ inputs.name }}" | |
./.github/workflows/test_build_commands.sh | |
fedora-37-64bit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 720 | |
if: ${{ inputs.fedora_37_64 }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test installing app on fedora 37 arm64 | |
uses: theofficialgman/arm-runner-action@v12 | |
with: | |
base_image: https://download.azka.li/stable/fedora/switch-fedora-2023-08-30.7z | |
# add special arguments for switchroot image format | |
bootpartition: | |
rootpartition: 1 | |
bind_mount_repository: yes | |
image_additional_mb: 5000 | |
# use TX1 ARM CPU cores | |
cpu: cortex-a7:cortex-a57 | |
copy_repository_path: /home/runner/L4T-Megascript | |
export_github_env: yes | |
import_github_env: true | |
shell: /bin/bash | |
commands: | | |
export name="${{ inputs.name }}" | |
./.github/workflows/test_build_commands.sh |