Skip to content

Commit

Permalink
ci: Add new workflows for testing builds across various platforms
Browse files Browse the repository at this point in the history
* Added nightly and manual workflows for Raspberry Pi 3 Mesa,
  Raspberry Pi 5, and Wandboard Mesa for stable and nightly builds.
* Updated pull request workflow to separate builds and tests for
  Raspberry Pi 5 and other devices.
* Introduced specific workflows for Freescale platforms with stable
  builds.
  • Loading branch information
psaavedra committed Jan 25, 2025
1 parent f69f115 commit 473ea32
Show file tree
Hide file tree
Showing 8 changed files with 553 additions and 13 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/test-build-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Build tests for nightly
on:
schedule:
# Runs at 3:00 AM UTC every day
- cron: '0 3 * * *'

jobs:
scarthgap-repo:
runs-on: [self-hosted, builder]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/s3-configure
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
with:
access_key: ${S3_ACCESS_KEY}
secret_key: ${S3_SECRET_KEY}
host_base: ${S3_HOST_BASE}
- uses: ./.github/actions/bitbake-repo
with:
repo_release: 'scarthgap'

build-raspberrypi-nightly:
strategy:
fail-fast: false
matrix:
machine: ['raspberrypi3-mesa', 'raspberrypi5']
wpe_vers: ['nightly']
yocto_rel: ['scarthgap']
continue-on-error: true
runs-on: [self-hosted, builder]
needs: scarthgap-repo
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/bitbake-build
with:
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
bitbake_machine: ${{ matrix.machine }}
bitbake_source: 'poky-wayland layers.raspberrypi conf.wpe-${{ matrix.wpe_vers }} --update-config'
repo_release: ${{ matrix.yocto_rel }}

test-raspberrypi-nightly:
strategy:
fail-fast: false
matrix:
machine: ['raspberrypi3-mesa', 'raspberrypi5']
wpe_vers: ['nightly']
yocto_rel: ['scarthgap']
runs-on: [self-hosted, podman]
permissions:
pull-requests: write
needs: build-raspberrypi-nightly
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/s3-configure
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
with:
access_key: ${S3_ACCESS_KEY}
secret_key: ${S3_SECRET_KEY}
host_base: ${S3_HOST_BASE}
- uses: ./.github/actions/podman-robot
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
bitbake_machine: ${{ matrix.machine }}
github_token: ${GITHUB_TOKEN}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build tests raspberrypi3-mesa nightly manually
on: workflow_dispatch

jobs:
scarthgap-repo:
runs-on: [self-hosted, builder]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/s3-configure
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
with:
access_key: ${S3_ACCESS_KEY}
secret_key: ${S3_SECRET_KEY}
host_base: ${S3_HOST_BASE}
- uses: ./.github/actions/bitbake-repo
with:
repo_release: 'scarthgap'

build-raspberrypi3-mesa-nightly:
strategy:
fail-fast: false
matrix:
machine: ['raspberrypi3-mesa']
wpe_vers: ['nightly']
yocto_rel: ['scarthgap']
runs-on: [self-hosted, builder]
needs: scarthgap-repo
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/bitbake-build
with:
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
bitbake_machine: ${{ matrix.machine }}
bitbake_source: 'poky-wayland layers.raspberrypi conf.wpe-${{ matrix.wpe_vers }} --update-config'
repo_release: ${{ matrix.yocto_rel }}

test-raspberrypi3-mesa-nightly:
strategy:
fail-fast: false
matrix:
machine: ['raspberrypi3-mesa']
wpe_vers: ['nightly']
yocto_rel: ['scarthgap']
runs-on: [self-hosted, podman]
permissions:
pull-requests: write
needs: build-raspberrypi3-mesa-nightly
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/s3-configure
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
with:
access_key: ${S3_ACCESS_KEY}
secret_key: ${S3_SECRET_KEY}
host_base: ${S3_HOST_BASE}
- uses: ./.github/actions/podman-robot
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
bitbake_machine: ${{ matrix.machine }}
github_token: ${GITHUB_TOKEN}
68 changes: 68 additions & 0 deletions .github/workflows/test-build-raspberrypi3-mesa-stable-manually.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build tests raspberrypi3-mesa stable manually
on: workflow_dispatch

jobs:
scarthgap-repo:
runs-on: [self-hosted, builder]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/s3-configure
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
with:
access_key: ${S3_ACCESS_KEY}
secret_key: ${S3_SECRET_KEY}
host_base: ${S3_HOST_BASE}
- uses: ./.github/actions/bitbake-repo
with:
repo_release: 'scarthgap'

build-raspberrypi3-mesa-stable:
strategy:
fail-fast: false
matrix:
machine: ['raspberrypi3-mesa']
wpe_vers: ['2_46']
yocto_rel: ['scarthgap']
runs-on: [self-hosted, builder]
needs: scarthgap-repo
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/bitbake-build
with:
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
bitbake_machine: ${{ matrix.machine }}
bitbake_source: 'poky-wayland layers.raspberrypi conf.wpe-${{ matrix.wpe_vers }} --update-config'
repo_release: ${{ matrix.yocto_rel }}

test-raspberrypi3-mesa-stable:
strategy:
fail-fast: false
matrix:
machine: ['raspberrypi3-mesa']
wpe_vers: ['2_46']
yocto_rel: ['scarthgap']
runs-on: [self-hosted, podman]
permissions:
pull-requests: write
needs: build-raspberrypi3-mesa-stable
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/s3-configure
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
with:
access_key: ${S3_ACCESS_KEY}
secret_key: ${S3_SECRET_KEY}
host_base: ${S3_HOST_BASE}
- uses: ./.github/actions/podman-robot
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
bitbake_machine: ${{ matrix.machine }}
github_token: ${GITHUB_TOKEN}
69 changes: 69 additions & 0 deletions .github/workflows/test-build-raspberrypi5-nightly-manually.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Build tests raspberrypi5 nightly manually
on: workflow_dispatch

jobs:
scarthgap-repo:
runs-on: [self-hosted, builder]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/s3-configure
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
with:
access_key: ${S3_ACCESS_KEY}
secret_key: ${S3_SECRET_KEY}
host_base: ${S3_HOST_BASE}
- uses: ./.github/actions/bitbake-repo
with:
repo_release: 'scarthgap'

build-raspberrypi5-nightly:
strategy:
fail-fast: false
matrix:
machine: ['raspberrypi5']
wpe_vers: ['nightly']
yocto_rel: ['scarthgap']
runs-on: [self-hosted, builder]
needs: scarthgap-repo
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/bitbake-build
with:
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
bitbake_machine: ${{ matrix.machine }}
bitbake_source: 'poky-wayland layers.raspberrypi conf.wpe-${{ matrix.wpe_vers }} --update-config'
repo_release: ${{ matrix.yocto_rel }}

test-raspberrypi5-nightly:
strategy:
fail-fast: false
matrix:
machine: ['raspberrypi5']
wpe_vers: ['nightly']
yocto_rel: ['scarthgap']
runs-on: [self-hosted, podman]
permissions:
pull-requests: write
needs: build-raspberrypi5-nightly
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/s3-configure
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
with:
access_key: ${S3_ACCESS_KEY}
secret_key: ${S3_SECRET_KEY}
host_base: ${S3_HOST_BASE}
- uses: ./.github/actions/podman-robot
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
bitbake_machine: ${{ matrix.machine }}
github_token: ${GITHUB_TOKEN}

69 changes: 69 additions & 0 deletions .github/workflows/test-build-raspberrypi5-stable-manually.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Build tests raspberrypi5 stable manually
on: workflow_dispatch

jobs:
scarthgap-repo:
runs-on: [self-hosted, builder]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/s3-configure
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
with:
access_key: ${S3_ACCESS_KEY}
secret_key: ${S3_SECRET_KEY}
host_base: ${S3_HOST_BASE}
- uses: ./.github/actions/bitbake-repo
with:
repo_release: 'scarthgap'

build-raspberrypi5-stable:
strategy:
fail-fast: false
matrix:
machine: ['raspberrypi5']
wpe_vers: ['2_46']
yocto_rel: ['scarthgap']
runs-on: [self-hosted, builder]
needs: scarthgap-repo
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/bitbake-build
with:
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
bitbake_machine: ${{ matrix.machine }}
bitbake_source: 'poky-wayland layers.raspberrypi conf.wpe-${{ matrix.wpe_vers }} --update-config'
repo_release: ${{ matrix.yocto_rel }}

test-raspberrypi5-stable:
strategy:
fail-fast: false
matrix:
machine: ['raspberrypi5']
wpe_vers: ['2_46']
yocto_rel: ['scarthgap']
runs-on: [self-hosted, podman]
permissions:
pull-requests: write
needs: build-raspberrypi5-stable
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/s3-configure
env:
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
with:
access_key: ${S3_ACCESS_KEY}
secret_key: ${S3_SECRET_KEY}
host_base: ${S3_HOST_BASE}
- uses: ./.github/actions/podman-robot
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
bitbake_machine: ${{ matrix.machine }}
github_token: ${GITHUB_TOKEN}

Loading

0 comments on commit 473ea32

Please sign in to comment.