Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add new workflows for testing builds across various platforms #24

Merged
merged 1 commit into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading