diff --git a/ci/concourse/build-rust-windows.yml b/ci/concourse/build-rust-windows.yml new file mode 100644 index 00000000..bdc9870a --- /dev/null +++ b/ci/concourse/build-rust-windows.yml @@ -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 diff --git a/ci/concourse/build-rust.bat b/ci/concourse/build-rust.bat new file mode 100755 index 00000000..07aeee12 --- /dev/null +++ b/ci/concourse/build-rust.bat @@ -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