From 04a6bafec027641c86b20fe81b3c0f4140e3dcac Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Sat, 12 Apr 2025 16:47:55 +0200 Subject: [PATCH 1/2] first build checks api --- .github/workflows/build_checks.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/build_checks.yml diff --git a/.github/workflows/build_checks.yml b/.github/workflows/build_checks.yml new file mode 100644 index 0000000000..d725beef40 --- /dev/null +++ b/.github/workflows/build_checks.yml @@ -0,0 +1,10 @@ +- name: Create Check Run + env: + GH_TOKEN: ${{ github.token }} + run: | + curl -L -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $GH_TOKEN"\ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/${{ github.repository }}/check-runs \ + -d '{"name":"A Mighty Test", "head_sha":"${{ github.event.pull_request.head.sha }}", "status":"in_progress","output":{"title":"A Mighty Summary"}}' From 0cdf18bac22ce6ad45b927e991a71f56f35b4517 Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Sat, 12 Apr 2025 17:00:13 +0200 Subject: [PATCH 2/2] update build check workflow --- .github/workflows/build_checks.yml | 47 +++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_checks.yml b/.github/workflows/build_checks.yml index d725beef40..9195f0ea72 100644 --- a/.github/workflows/build_checks.yml +++ b/.github/workflows/build_checks.yml @@ -1,10 +1,37 @@ -- name: Create Check Run - env: - GH_TOKEN: ${{ github.token }} - run: | - curl -L -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $GH_TOKEN"\ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/${{ github.repository }}/check-runs \ - -d '{"name":"A Mighty Test", "head_sha":"${{ github.event.pull_request.head.sha }}", "status":"in_progress","output":{"title":"A Mighty Summary"}}' +name: Create Check Run +on: + push: + branches: [ "*-software.eessi.io" ] + pull_request: +permissions: + contents: read +env: + GH_TOKEN: ${{ github.token }} +jobs: + build_check: + runs-on: ubuntu-24.04 + strategy: + fail-fast: false + matrix: + EESSI_VERSION: + - 2023.06 + EESSI_SOFTWARE_SUBDIR_OVERRIDE: + - aarch64/generic + #- aarch64/neoverse_n1 + #- aarch64/neoverse_v1 + #- x86_64/amd/zen2 + #- x86_64/amd/zen3 + #- x86_64/amd/zen4 + #- x86_64/intel/haswell + #- x86_64/intel/sapphirerapids + #- x86_64/intel/skylake_avx512 + - x86_64/generic + steps: + - name: Create Check + run: | + curl -L -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $GH_TOKEN"\ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/${{ github.repository }}/check-runs \ + -d '{"name":"A Mighty Test", "head_sha":"${{ github.event.pull_request.head.sha }}", "status":"in_progress","output":{"title":"A Mighty Summary"}}'