Skip to content

Commit

Permalink
test new chroot-runner-action on more steps
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Feb 1, 2025
1 parent c69f505 commit c768870
Showing 1 changed file with 20 additions and 35 deletions.
55 changes: 20 additions & 35 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ run-name: Testing ${{ inputs.name }}
jobs:
buster-32bit:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
if: ${{ inputs.buster && ( inputs.architecture == '32bit' || inputs.architecture == 'Both' ) }}

# Steps represent a sequence of tasks that will be executed as part of the job
Expand All @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@v4

- name: Test installing app on buster armhf
uses: theofficialgman/arm-runner-action@v12
uses: theofficialgman/chroot-runner-action@v0.1
with:
# this is a buster armhf image
base_image: https://downloads.raspberrypi.org/raspios_oldstable_armhf/images/raspios_oldstable_armhf-2023-05-03/2023-05-03-raspios-buster-armhf.img.xz
Expand All @@ -74,9 +74,6 @@ jobs:
# give the image more space
image_additional_mb: 5000

# set CPUs to use
cpu: cortex-a7:cortex-a72

# use custom /proc/cpuinfo
cpu_info: cpuinfo/raspberrypi_4b

Expand All @@ -95,17 +92,16 @@ jobs:
./.github/workflows/test_build_commands.sh
bullseye-32bit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
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
uses: theofficialgman/chroot-runner-action@v0.1
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/pi-apps
export_github_env: yes
Expand All @@ -116,17 +112,16 @@ jobs:
./.github/workflows/test_build_commands.sh
bookworm-32bit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
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
uses: theofficialgman/chroot-runner-action@v0.1
with:
base_image: https://downloads.raspberrypi.com/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/pi-apps
export_github_env: yes
Expand All @@ -137,17 +132,16 @@ jobs:
./.github/workflows/test_build_commands.sh
buster-64bit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
if: ${{ inputs.buster && ( inputs.architecture == '64bit' || inputs.architecture == 'Both' ) }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on buster arm64
uses: theofficialgman/arm-runner-action@v12
uses: theofficialgman/chroot-runner-action@v0.1
with:
base_image: https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2021-05-28/2021-05-07-raspios-buster-arm64.zip
bind_mount_repository: yes
image_additional_mb: 5000
cpu: cortex-a7:cortex-a72
cpu_info: cpuinfo/raspberrypi_4b
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
Expand All @@ -158,17 +152,16 @@ jobs:
./.github/workflows/test_build_commands.sh
bullseye-64bit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
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
uses: theofficialgman/chroot-runner-action@v0.1
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
cpu_info: cpuinfo/raspberrypi_4b
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
Expand All @@ -179,17 +172,16 @@ jobs:
./.github/workflows/test_build_commands.sh
bookworm-64bit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
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
uses: theofficialgman/chroot-runner-action@v0.1
with:
base_image: https://downloads.raspberrypi.com/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
cpu_info: cpuinfo/raspberrypi_4b
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
Expand All @@ -200,21 +192,19 @@ jobs:
./.github/workflows/test_build_commands.sh
l4t-bionic-64bit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
if: ${{ inputs.l4t_bionic_64 }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on L4T bionic arm64
uses: theofficialgman/arm-runner-action@v12
uses: theofficialgman/chroot-runner-action@v0.1
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/pi-apps
export_github_env: yes
import_github_env: true
Expand All @@ -224,7 +214,7 @@ jobs:
./.github/workflows/test_build_commands.sh
l4t-focal-64bit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
if: ${{ inputs.l4t_focal_64 }}
steps:
- uses: actions/checkout@v4
Expand All @@ -237,15 +227,14 @@ jobs:
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Test installing app on L4T focal arm64
uses: theofficialgman/arm-runner-action@v12
uses: theofficialgman/chroot-runner-action@v0.1
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/pi-apps
export_github_env: yes
import_github_env: true
Expand All @@ -255,21 +244,19 @@ jobs:
./.github/workflows/test_build_commands.sh
l4t-jammy-64bit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
if: ${{ inputs.l4t_jammy_64 }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on L4T jammy arm64
uses: theofficialgman/arm-runner-action@v12
uses: theofficialgman/chroot-runner-action@v0.1
with:
base_image: https://download.switchroot.org/ubuntu-jammy/theofficialgman-ubuntu-jammy-5.1.2-2024-10-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
Expand All @@ -279,21 +266,19 @@ jobs:
./.github/workflows/test_build_commands.sh
l4t-noble-64bit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
if: ${{ inputs.l4t_noble_64 }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on L4T noble arm64
uses: theofficialgman/arm-runner-action@v12
uses: theofficialgman/chroot-runner-action@v0.1
with:
base_image: https://download.switchroot.org/ubuntu-noble/theofficialgman-kubuntu-noble-5.1.2-2024-10-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
Expand Down

0 comments on commit c768870

Please sign in to comment.