|
17 | 17 | with:
|
18 | 18 | path: /opt/vitasdk
|
19 | 19 |
|
20 |
| - build-example: |
21 |
| - name: Build example |
| 20 | + build-tests: |
| 21 | + name: Build tests |
22 | 22 | runs-on: ubuntu-latest
|
23 | 23 | needs: install-vitasdk
|
24 | 24 | timeout-minutes: 20
|
@@ -58,32 +58,30 @@ jobs:
|
58 | 58 | run: |
|
59 | 59 | echo "/opt/vitasdk/bin" >> $GITHUB_PATH
|
60 | 60 |
|
61 |
| - - name: Build example in debug mode |
| 61 | + - name: Build tests in debug mode |
62 | 62 | env:
|
63 | 63 | VITASDK: /opt/vitasdk
|
64 | 64 | 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 |
67 | 66 |
|
68 |
| - - name: Build example in release mode |
| 67 | + - name: Build tests in release mode |
69 | 68 | env:
|
70 | 69 | VITASDK: /opt/vitasdk
|
71 | 70 | 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 |
74 | 72 |
|
75 | 73 | - name: Upload debug build
|
76 | 74 | uses: actions/upload-artifact@v3
|
77 | 75 | with:
|
78 | 76 | 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-*.* |
80 | 78 | if-no-files-found: error
|
81 | 79 |
|
82 | 80 | - name: Upload release build
|
83 | 81 | uses: actions/upload-artifact@v3
|
84 | 82 | with:
|
85 | 83 | 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-*.* |
87 | 85 | if-no-files-found: error
|
88 | 86 |
|
89 | 87 | clippy:
|
@@ -112,7 +110,7 @@ jobs:
|
112 | 110 | env:
|
113 | 111 | VITASDK: /opt/vitasdk
|
114 | 112 | run: |
|
115 |
| - cargo clippy --tests --workspace -- -Dclippy::all -Dwarnings |
| 113 | + cargo clippy --tests --workspace --features all-stubs -- -Dclippy::all -Dwarnings |
116 | 114 |
|
117 | 115 | rustfmt:
|
118 | 116 | name: Rustfmt
|
|
0 commit comments