Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ci/concourse/build-rust-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
platform: windows

params:
RUSTUP_TOOLCHAIN: nightly-2023-09-26

inputs:
- name: repo

caches:
- path: repo/ci/tests/target/
- path: repo/target/

run:
path: repo/ci/concourse/build-rust.bat
29 changes: 29 additions & 0 deletions ci/concourse/build-rust.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
rustup set profile minimal
rustup update --no-self-update %RUSTUP_TOOLCHAIN%

rustup component add rust-src

# Test formatting
rustup component add rustfmt
cd repo/
cargo fmt --check
cd ..

# build cargo-psp
cd repo/cargo-psp/
cargo build
cd ../..

# Add cargo-psp to path
set PATH=%cd%/repo/target/debug/;%PATH%

# build the test project
cd repo/ci/tests
cargo psp
cd ../../..

# Make the output directory, in case it is not specified as an output for this
# concourse task.
mkdir rust-build-dir

copy repo/ci/tests/target/mipsel-sony-psp/debug/* rust-build-dir