Skip to content

Testing scripts/development/godot.sh #137

Testing scripts/development/godot.sh

Testing scripts/development/godot.sh #137

Workflow file for this run

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: ''
bullseye:
description: 'PiOS Bullseye'
required: true
type: boolean
bookworm:
description: 'PiOS Bookworm'
required: true
type: boolean
architecture:
type: choice
description: 'For Buster/Bullseye/Bookworm, test on 64bit, 32bit, or Both if available'
options:
- 64bit
- 32bit
- Both
l4t_bionic_64:
description: 'Build on Switchroot Ubuntu Bionic 64bit'
required: true
type: boolean
l4t_focal_64:
description: 'Build on Nvidia Jetpack 35.3.1 Focal 64bit'
required: true
type: boolean
l4t_jammy_64:
description: 'Build on Switchroot Ubuntu Jammy 64bit'
required: true
type: boolean
l4t_noble_64:
description: 'Build on Switchroot Ubuntu Noble 64bit'
required: true
type: boolean
fedora_39_64:
description: 'L4S Fedora 39'
required: true
type: boolean
noble_64:
description: 'RPI Ubuntu Noble'
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:
bullseye-32bit:
runs-on: ubuntu-latest
if: ${{ inputs.bullseye && ( inputs.architecture == '32bit' || inputs.architecture == 'Both' ) }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on bullseye armhf
uses: theofficialgman/arm-runner-action@v12
with:
base_image: https://downloads.raspberrypi.org/raspios_oldstable_armhf/images/raspios_oldstable_armhf-2024-07-04/2024-07-04-raspios-bullseye-armhf.img.xz
bind_mount_repository: yes
image_additional_mb: 5000
cpu: cortex-a7:cortex-a72
cpu_info: cpuinfo/raspberrypi_4b
copy_repository_path: /home/runner/L4T-Megascript
export_github_env: yes
import_github_env: true
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 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
if: ${{ inputs.bookworm && ( inputs.architecture == '32bit' || inputs.architecture == 'Both' ) }}
steps:
- uses: actions/checkout@v4
- 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-2024-07-04/2024-07-04-raspios-bookworm-armhf.img.xz
bind_mount_repository: yes
image_additional_mb: 5000
cpu: cortex-a7:cortex-a72
cpu_info: cpuinfo/raspberrypi_4b
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
bullseye-64bit:
runs-on: ubuntu-latest
timeout-minutes: 720
if: ${{ inputs.bullseye && ( inputs.architecture == '64bit' || inputs.architecture == 'Both' ) }}
steps:
- uses: actions/checkout@v4
- 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-2024-07-04/2024-07-04-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-64bit:
runs-on: ubuntu-latest
timeout-minutes: 720
if: ${{ inputs.bookworm && ( inputs.architecture == '64bit' || inputs.architecture == 'Both' ) }}
steps:
- uses: actions/checkout@v4
- 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-2024-07-04/2024-07-04-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
l4t-bionic-64bit:
runs-on: ubuntu-latest
if: ${{ inputs.l4t_bionic_64 }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on L4T bionic arm64
uses: theofficialgman/arm-runner-action@v12
with:
base_image: https://download.switchroot.org/ubuntu-bionic/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
l4t-focal-64bit:
runs-on: ubuntu-latest
if: ${{ inputs.l4t_focal_64 }}
steps:
- uses: actions/checkout@v4
- 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 \
"$AGENT_TOOLSDIRECTORY" \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/opt/pipx \
/usr/lib/mono \
/usr/local/julia* \
/usr/local/lib/android \
/usr/local/lib/node_modules \
/usr/local/share/chromium \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift
- name: Test installing app on L4T 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
l4t-jammy-64bit:
runs-on: ubuntu-latest
if: ${{ inputs.l4t_jammy_64 }}
steps:
- uses: actions/checkout@v4
- 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-2024-03-29.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
l4t-noble-64bit:
runs-on: ubuntu-latest
if: ${{ inputs.l4t_noble_64 }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on L4T noble arm64
uses: theofficialgman/arm-runner-action@v12
with:
base_image: https://download.switchroot.org/ubuntu-noble/theofficialgman-kubuntu-noble-5.1.2-2024-05-20.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
fedora-39-64bit:
runs-on: ubuntu-latest
timeout-minutes: 720
if: ${{ inputs.fedora_39_64 }}
steps:
- uses: actions/checkout@v4
- 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 \
"$AGENT_TOOLSDIRECTORY" \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/opt/pipx \
/usr/lib/mono \
/usr/local/julia* \
/usr/local/lib/android \
/usr/local/lib/node_modules \
/usr/local/share/chromium \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift
- name: Test installing app on fedora 39 arm64
uses: theofficialgman/arm-runner-action@v12
with:
base_image: https://download.switchroot.org/fedora-39/switch-kde-2024-07-11.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
noble-64bit:
runs-on: ubuntu-latest
timeout-minutes: 720
if: ${{ inputs.noble_64 }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on L4T noble arm64
uses: theofficialgman/arm-runner-action@v12
with:
base_image: https://cdimage.ubuntu.com/releases/24.04/release/ubuntu-24.04-preinstalled-desktop-arm64+raspi.img.xz
bind_mount_repository: yes
image_additional_mb: 5000
# use TX1 ARM CPU cores
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