From dba45c06e71aaf26015dbb6fc527d2adbe8eede0 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 5 Feb 2023 12:58:06 +1000 Subject: [PATCH 1/3] Attempt to restrict trigger for ARM to labels --- .github/workflows/build-and-test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c033dd133..dfaaf2f64 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -9,10 +9,13 @@ on: pull_request: branches: - main + types: [ labeled, opened, synchronize, reopened ] jobs: Build: strategy: matrix: + isARM: + - contains(github.event.pull_request.labels.*.name, 'arch:arm32') || contains(github.event.pull_request.labels.*.name, 'arch:arm64') options: - os: ubuntu-latest framework: net7.0 @@ -47,6 +50,14 @@ jobs: sdk: 6.0.x runtime: -x64 codecov: false + - os: buildjet-4vcpu-ubuntu-2204-arm + framework: net6.0 + sdk: 6.0.x + runtime: -x64 + codecov: false + exclude: + - isARM: false + options.os: buildjet-4vcpu-ubuntu-2204-arm runs-on: ${{matrix.options.os}} From 3d39a6c5cfea15eb8bf715bca018ff9a018abbb1 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 5 Feb 2023 13:05:00 +1000 Subject: [PATCH 2/3] Try nesting --- .github/workflows/build-and-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 30e2ef8bc..c7183b6ee 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -63,7 +63,8 @@ jobs: codecov: false exclude: - isARM: false - options.os: buildjet-4vcpu-ubuntu-2204-arm + options: + os: buildjet-4vcpu-ubuntu-2204-arm runs-on: ${{matrix.options.os}} From aeca1175d83e0c1bb233b9c5215b9a96d24380f1 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 5 Feb 2023 13:07:43 +1000 Subject: [PATCH 3/3] Wrap with braces --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c7183b6ee..001244a89 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: isARM: - - contains(github.event.pull_request.labels.*.name, 'arch:arm32') || contains(github.event.pull_request.labels.*.name, 'arch:arm64') + - ${{ contains(github.event.pull_request.labels.*.name, 'arch:arm32') || contains(github.event.pull_request.labels.*.name, 'arch:arm64') }} options: - os: ubuntu-latest framework: net7.0