Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

add rust-toolchain and lock dependencies #3

Merged
merged 1 commit into from
Feb 9, 2024
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ jobs:
- name: Setup rust
run: |
rustup set profile minimal
rustup toolchain install nightly-2023-04-17
rustup default nightly-2023-04-17
rustup toolchain install nightly-2023-06-25
rustup default nightly-2023-06-25

- name: Build tests and copy binaries to a separate dir
shell: bash
run: |
mkdir artifacts
CARGO_TARGET_DIR=./build \
cargo +nightly-2023-04-17 test --no-run --release --message-format=json -q \
cargo +nightly-2023-06-25 test --no-run --release --message-format=json -q \
| jq -r 'select(.executable != null) | .executable' \
| while read binary; do
cp "$binary" artifacts/
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
# will have compiled files and executables
/target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

Expand Down
Loading
Loading