Skip to content

Commit 812ff67

Browse files
committed
Add tests and remove example
1 parent e357f6e commit 812ff67

File tree

17 files changed

+77
-434
lines changed

17 files changed

+77
-434
lines changed

.github/workflows/build.yml

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

21-
build-example:
22-
name: Build example
21+
build-tests:
22+
name: Build tests
2323
runs-on: ubuntu-latest
2424
needs: install-vitasdk
2525
timeout-minutes: 20
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
token: ${{ secrets.GITHUB_TOKEN }}
3131
status: pending
32-
context: Build example
32+
context: Build tests
3333
sha: ${{ github.sha }}
3434

3535
- uses: actions/checkout@v3
@@ -67,32 +67,32 @@ jobs:
6767
run: |
6868
echo "/opt/vitasdk/bin" >> $GITHUB_PATH
6969
70-
- name: Build example in debug mode
70+
- name: Build tests in debug mode
7171
env:
7272
VITASDK: /opt/vitasdk
7373
run: |
7474
cd examples/std-hello-world
75-
cargo +nightly vita build vpk
75+
cargo +nightly vita build --default-title-id SYSTEST01 vpk -- --tests --features SceLibKernel_stub
7676
77-
- name: Build example in release mode
77+
- name: Build tests in release mode
7878
env:
7979
VITASDK: /opt/vitasdk
8080
run: |
8181
cd examples/std-hello-world
82-
cargo +nightly vita build vpk --release
82+
cargo +nightly vita build --default-title-id SYSTEST01 vpk -- --tests --release --features SceLibKernel_stub
8383
8484
- name: Upload debug build
8585
uses: actions/upload-artifact@v3
8686
with:
8787
name: std-hello-world-debug-build
88-
path: target/armv7-sony-vita-newlibeabihf/debug/std-hello-world.*
88+
path: target/armv7-sony-vita-newlibeabihf/debug/deps/vitasdk_sys-*.*
8989
if-no-files-found: error
9090

9191
- name: Upload release build
9292
uses: actions/upload-artifact@v3
9393
with:
9494
name: std-hello-world-release-build
95-
path: target/armv7-sony-vita-newlibeabihf/release/std-hello-world.*
95+
path: target/armv7-sony-vita-newlibeabihf/release/deps/vitasdk_sys-*.*
9696
if-no-files-found: error
9797

9898
- name: Set final commit status

Cargo.lock

-61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ categories = ["external-ffi-bindings"]
1515
exclude = ["vita-headers"]
1616

1717
[workspace]
18-
members = ["examples/*", "build-util"]
18+
members = ["build-util"]
1919

2020
[profile.release]
2121
lto = true

examples/std-hello-world/Cargo.toml

-21
This file was deleted.

examples/std-hello-world/README.md

-59
This file was deleted.
-2 KB
Binary file not shown.

examples/std-hello-world/src/debug/font.rs

-19
This file was deleted.

examples/std-hello-world/src/debug/mod.rs

-2
This file was deleted.

0 commit comments

Comments
 (0)