|
|
@ -7,27 +7,37 @@ description: > |
|
|
|
|
|
|
|
|
|
|
|
inputs: |
|
|
|
inputs: |
|
|
|
args: |
|
|
|
args: |
|
|
|
description: > |
|
|
|
description: Extra arguments to pass to `cargo 3ds test` |
|
|
|
Extra arguments to pass to `cargo 3ds test` |
|
|
|
|
|
|
|
required: false |
|
|
|
required: false |
|
|
|
default: '' |
|
|
|
default: '' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
runner-image: |
|
|
|
|
|
|
|
description: The name of the container image to build for running tests in |
|
|
|
|
|
|
|
required: false |
|
|
|
|
|
|
|
default: test-runner-3ds |
|
|
|
|
|
|
|
|
|
|
|
runs: |
|
|
|
runs: |
|
|
|
using: composite |
|
|
|
using: composite |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
|
|
|
|
- name: Set up Docker Buildx |
|
|
|
|
|
|
|
uses: docker/setup-buildx-action@v3 |
|
|
|
|
|
|
|
|
|
|
|
- name: Build test-runner image |
|
|
|
- name: Build test-runner image |
|
|
|
uses: docker/build-push-action@v2 |
|
|
|
uses: docker/build-push-action@v4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
tags: test-runner-3ds:latest |
|
|
|
tags: ${{ inputs.runner-image }}:latest |
|
|
|
push: false |
|
|
|
push: false |
|
|
|
|
|
|
|
|
|
|
|
- shell: bash |
|
|
|
- shell: bash |
|
|
|
env: |
|
|
|
# Set a custom runner for `cargo test` commands to use. |
|
|
|
# Set a custom runner for `cargo test` commands to use |
|
|
|
# Use ${GITHUB_WORKSPACE} due to |
|
|
|
CARGO_TARGET_ARMV6K_NINTENDO_3DS_RUNNER: |- |
|
|
|
# https://github.com/actions/runner/issues/2058, which also means |
|
|
|
docker run --rm \ |
|
|
|
# we have to export this instead of using the env: key |
|
|
|
-v /tmp:/tmp \ |
|
|
|
run: | |
|
|
|
-v ${{ github.workspace }}/target:/app/target \ |
|
|
|
export CARGO_TARGET_ARMV6K_NINTENDO_3DS_RUNNER="docker run --rm |
|
|
|
-v ${{ github.workspace }}:${{ github.workspace }} \ |
|
|
|
-v /tmp:/tmp |
|
|
|
test-runner-3ds:latest |
|
|
|
-v ${GITHUB_WORKSPACE}/target:/app/target |
|
|
|
run: cargo 3ds test ${{ inputs.args }} |
|
|
|
-v ${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE} |
|
|
|
|
|
|
|
${{ inputs.runner-image }}:latest" |
|
|
|
|
|
|
|
env |
|
|
|
|
|
|
|
cargo 3ds -v test ${{ inputs.args }} |
|
|
|