kernelCTF auto releaser #426
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: kernelCTF auto releaser | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 12 * * *' # every day at 12:00 UTC | |
permissions: {} | |
defaults: | |
run: | |
shell: bash | |
working-directory: kernelctf | |
jobs: | |
get_new_builds: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Test GCS SA key to fail quick before trying to make a build | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: '${{secrets.KERNELCTF_GCS_SA_KEY}}' | |
create_credentials_file: false | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install prerequisites | |
run: sudo apt install -yq --no-install-recommends python3-lxml | |
- id: check | |
name: Check latest kernel versions | |
run: ./get_latest_kernel_versions.py | |
outputs: | |
releases: ${{ steps.check.outputs.releases }} | |
build_release: | |
needs: get_new_builds | |
if: fromJSON(needs.get_new_builds.outputs.releases)[0] != null | |
strategy: | |
matrix: | |
release: ${{ fromJSON(needs.get_new_builds.outputs.releases) }} | |
fail-fast: false # do not cancel other builds | |
uses: ./.github/workflows/kernelctf-release-build.yaml | |
secrets: inherit | |
with: | |
releaseId: ${{ matrix.release.releaseId }} | |
branch: ${{ matrix.release.branch }} |