Skip to content

Commit

Permalink
(build) run tests for arm64 artifacts when TEST_ARM64_ARTIFACTS is en…
Browse files Browse the repository at this point in the history
…abled
  • Loading branch information
arturcic committed Apr 18, 2023
1 parent 3751a9c commit 59c57a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/_artifacts_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
arch:
required: true
type: string
test_arm64_artifacts:
required: false
type: boolean
default: false

env:
DOTNET_INSTALL_DIR: "./.dotnet"
Expand Down Expand Up @@ -46,9 +50,14 @@ jobs:
name: Setup QEMU
if: inputs.arch == 'arm64'
uses: docker/setup-qemu-action@v2
-
name: Echo
shell: pwsh
run: |
Write-Host "Test ARM64 Artifacts: ${{ inputs.test_arm64_artifacts }}"
-
name: '[Test Artifacts]'
shell: pwsh
run: dotnet run/artifacts.dll --target=ArtifactsTest --arch ${{ inputs.arch }} --docker_dotnetversion=${{ matrix.targetFramework }} --docker_distro=${{ matrix.distro }}
env:
TEST_ARM64_ARTIFACTS: ${{ secrets.TEST_ARM64_ARTIFACTS }}
TEST_ARM64_ARTIFACTS: ${{ inputs.test_arm64_artifacts }}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
with:
runner: ubuntu-latest
arch: ${{ matrix.arch }}
secrets: inherit
test_arm64_artifacts: true

docker_linux_images:
needs: [ build ]
Expand Down

0 comments on commit 59c57a2

Please sign in to comment.