Skip to content

Commit dda73cb

Browse files
committed
Add tests and remove example
1 parent d1bed45 commit dda73cb

File tree

18 files changed

+125
-550
lines changed

18 files changed

+125
-550
lines changed

.github/workflows/build.yml

+9-11
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
with:
1818
path: /opt/vitasdk
1919

20-
build-example:
21-
name: Build example
20+
build-tests:
21+
name: Build tests
2222
runs-on: ubuntu-latest
2323
needs: install-vitasdk
2424
timeout-minutes: 20
@@ -58,32 +58,30 @@ jobs:
5858
run: |
5959
echo "/opt/vitasdk/bin" >> $GITHUB_PATH
6060
61-
- name: Build example in debug mode
61+
- name: Build tests in debug mode
6262
env:
6363
VITASDK: /opt/vitasdk
6464
run: |
65-
cd examples/std-hello-world
66-
cargo +nightly vita build vpk
65+
cargo +nightly vita build --default-title-id SYSTEST01 vpk -- --tests --features SceLibKernel_stub
6766
68-
- name: Build example in release mode
67+
- name: Build tests in release mode
6968
env:
7069
VITASDK: /opt/vitasdk
7170
run: |
72-
cd examples/std-hello-world
73-
cargo +nightly vita build vpk --release
71+
cargo +nightly vita build --default-title-id SYSTEST01 vpk -- --tests --release --features SceLibKernel_stub
7472
7573
- name: Upload debug build
7674
uses: actions/upload-artifact@v3
7775
with:
7876
name: std-hello-world-debug-build
79-
path: target/armv7-sony-vita-newlibeabihf/debug/std-hello-world.*
77+
path: target/armv7-sony-vita-newlibeabihf/debug/deps/vitasdk_sys-*.*
8078
if-no-files-found: error
8179

8280
- name: Upload release build
8381
uses: actions/upload-artifact@v3
8482
with:
8583
name: std-hello-world-release-build
86-
path: target/armv7-sony-vita-newlibeabihf/release/std-hello-world.*
84+
path: target/armv7-sony-vita-newlibeabihf/release/deps/vitasdk_sys-*.*
8785
if-no-files-found: error
8886

8987
clippy:
@@ -112,7 +110,7 @@ jobs:
112110
env:
113111
VITASDK: /opt/vitasdk
114112
run: |
115-
cargo clippy --tests --workspace -- -Dclippy::all -Dwarnings
113+
cargo clippy --tests --workspace --features all-stubs -- -Dclippy::all -Dwarnings
116114
117115
rustfmt:
118116
name: Rustfmt

0 commit comments

Comments
 (0)