Skip to content

Commit 59c57a2

Browse files
committed
(build) run tests for arm64 artifacts when TEST_ARM64_ARTIFACTS is enabled
1 parent 3751a9c commit 59c57a2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/_artifacts_linux.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
arch:
88
required: true
99
type: string
10+
test_arm64_artifacts:
11+
required: false
12+
type: boolean
13+
default: false
1014

1115
env:
1216
DOTNET_INSTALL_DIR: "./.dotnet"
@@ -46,9 +50,14 @@ jobs:
4650
name: Setup QEMU
4751
if: inputs.arch == 'arm64'
4852
uses: docker/setup-qemu-action@v2
53+
-
54+
name: Echo
55+
shell: pwsh
56+
run: |
57+
Write-Host "Test ARM64 Artifacts: ${{ inputs.test_arm64_artifacts }}"
4958
-
5059
name: '[Test Artifacts]'
5160
shell: pwsh
5261
run: dotnet run/artifacts.dll --target=ArtifactsTest --arch ${{ inputs.arch }} --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }}
5362
env:
54-
TEST_ARM64_ARTIFACTS: ${{ secrets.TEST_ARM64_ARTIFACTS }}
63+
TEST_ARM64_ARTIFACTS: ${{ inputs.test_arm64_artifacts }}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
with:
7171
runner: ubuntu-latest
7272
arch: ${{ matrix.arch }}
73-
secrets: inherit
73+
test_arm64_artifacts: true
7474

7575
docker_linux_images:
7676
needs: [ build ]

0 commit comments

Comments
 (0)