|
|
@ -22,14 +22,16 @@ jobs: |
|
|
|
- name: Checkout branch |
|
|
|
- name: Checkout branch |
|
|
|
uses: actions/checkout@v4 |
|
|
|
uses: actions/checkout@v4 |
|
|
|
|
|
|
|
|
|
|
|
- uses: ./actions/setup |
|
|
|
- uses: ./setup |
|
|
|
with: |
|
|
|
with: |
|
|
|
toolchain: ${{ matrix.toolchain }} |
|
|
|
toolchain: ${{ matrix.toolchain }} |
|
|
|
|
|
|
|
|
|
|
|
- name: Check formatting |
|
|
|
- name: Check formatting |
|
|
|
|
|
|
|
working-directory: test-runner |
|
|
|
run: cargo fmt --all --verbose -- --check |
|
|
|
run: cargo fmt --all --verbose -- --check |
|
|
|
|
|
|
|
|
|
|
|
- name: Run clippy |
|
|
|
- name: Run clippy |
|
|
|
|
|
|
|
working-directory: test-runner |
|
|
|
run: cargo 3ds clippy --color=always --verbose --all-targets |
|
|
|
run: cargo 3ds clippy --color=always --verbose --all-targets |
|
|
|
|
|
|
|
|
|
|
|
test: |
|
|
|
test: |
|
|
@ -47,8 +49,6 @@ jobs: |
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
# So the test action can `docker run` the runner: |
|
|
|
# So the test action can `docker run` the runner: |
|
|
|
- '/var/run/docker.sock:/var/run/docker.sock' |
|
|
|
- '/var/run/docker.sock:/var/run/docker.sock' |
|
|
|
# So the built test artifacts end up on the host, not just inside the action container |
|
|
|
|
|
|
|
- '/tmp:/tmp' |
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: Checkout branch |
|
|
|
- name: Checkout branch |
|
|
|
uses: actions/checkout@v4 |
|
|
|
uses: actions/checkout@v4 |
|
|
@ -63,18 +63,18 @@ jobs: |
|
|
|
working-directory: test-runner |
|
|
|
working-directory: test-runner |
|
|
|
args: -- -v |
|
|
|
args: -- -v |
|
|
|
|
|
|
|
|
|
|
|
- name: Build and run doc tests |
|
|
|
# TODO(#4): run these suckers |
|
|
|
# Let's still run doc tests even if lib/integration tests fail: |
|
|
|
# - name: Build and run doc tests |
|
|
|
if: ${{ !cancelled() }} |
|
|
|
# # Let's still run doc tests even if lib/integration tests fail: |
|
|
|
env: |
|
|
|
# if: ${{ !cancelled() }} |
|
|
|
# This ensures the citra logs and video output gets put in a directory |
|
|
|
# env: |
|
|
|
# where we can upload as artifacts |
|
|
|
# # This ensures the citra logs and video output gets put in a directory |
|
|
|
RUSTDOCFLAGS: " --persist-doctests target/armv6k-nintendo-3ds/debug/doctests" |
|
|
|
# # where we can upload as artifacts |
|
|
|
uses: ./run-tests |
|
|
|
# RUSTDOCFLAGS: " --persist-doctests ${{ env.GITHUB_WORKSPACE }}/target/armv6k-nintendo-3ds/debug/doctests" |
|
|
|
with: |
|
|
|
# uses: ./run-tests |
|
|
|
working-directory: test-runner |
|
|
|
# with: |
|
|
|
# TODO(#4): run them suckers |
|
|
|
# working-directory: test-runner |
|
|
|
args: --doc --no-run -- -v |
|
|
|
# args: --doc -- -v |
|
|
|
|
|
|
|
|
|
|
|
- name: Upload citra logs and capture videos |
|
|
|
- name: Upload citra logs and capture videos |
|
|
|
uses: actions/upload-artifact@v3 |
|
|
|
uses: actions/upload-artifact@v3 |
|
|
|