Minor optimizations #273
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Checkout vitasdk | |
uses: actions/checkout@v4 | |
with: | |
repository: vitasdk/vdpm | |
path: vdpm | |
- name: Install vitasdk | |
run: | | |
cd vdpm | |
./bootstrap-vitasdk.sh | |
./install-all.sh | |
env: | |
VITASDK: /usr/local/vitasdk | |
- name: Setup rust | |
run: | | |
rustup toolchain install nightly | |
rustup override set nightly | |
rustup component add rust-src --toolchain nightly | |
- name: Install cargo-vita | |
run: cargo +nightly install cargo-vita | |
env: | |
VITASDK: /usr/local/vitasdk | |
- name: Build release | |
run: cargo vita build vpk --release | |
env: | |
VITASDK: /usr/local/vitasdk | |
- name: Upload vpk | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dsvita-vpk | |
path: target/armv7-sony-vita-newlibeabihf/release/dsvita.vpk | |
- name: Upload elf | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dsvita-elf | |
path: target/armv7-sony-vita-newlibeabihf/release/dsvita.elf |