Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows CI #161

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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