Browse Source
Add a "test" action instead of a "citra" action. It might still be useful to have the citra action for examples later on but it's pretty simple to reimplement.pull/7/head
Ian Chamberlain
1 year ago
4 changed files with 52 additions and 47 deletions
@ -1,12 +0,0 @@
@@ -1,12 +0,0 @@
|
||||
name: 'Run 3DS Executable' |
||||
description: 'Run a given 3DS executable with citra and GDB' |
||||
inputs: |
||||
executable: |
||||
description: > |
||||
The 3DS executable(s) to run. Globs and space separated lists allowed. |
||||
required: true |
||||
runs: |
||||
using: docker |
||||
image: ../../../Dockerfile |
||||
args: |
||||
- ${{ inputs.executable }} |
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
name: Cargo 3DS Test |
||||
description: > |
||||
Run `cargo 3ds test` executables using Citra. Note that to use this action, |
||||
you must mount `/var/run/docker.sock:/var/run/docker.sock` and `/tmp:/tmp` into |
||||
the container so that the runner image can be built and doctest artifacts can |
||||
be found, respectively. |
||||
|
||||
inputs: |
||||
args: |
||||
description: > |
||||
Extra arguments to pass to `cargo 3ds test` |
||||
required: false |
||||
default: '' |
||||
|
||||
runs: |
||||
using: composite |
||||
steps: |
||||
- name: Build test-runner image |
||||
uses: docker/build-push-action@v2 |
||||
with: |
||||
tags: test-runner-3ds:latest |
||||
push: false |
||||
|
||||
- shell: bash |
||||
env: |
||||
# Set a custom runner for `cargo test` commands to use |
||||
CARGO_TARGET_ARMV6K_NINTENDO_3DS_RUNNER: |- |
||||
docker run --rm \ |
||||
-v /tmp:/tmp \ |
||||
-v ${{ github.workspace }}/target:/app/target \ |
||||
-v ${{ github.workspace }}:${{ github.workspace }} \ |
||||
test-runner-3ds:latest |
||||
run: cargo 3ds test ${{ inputs.args }} |
Loading…
Reference in new issue