Skip to content

Commit

Permalink
Try to fix the Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Dec 1, 2024
1 parent de53bec commit 3b853ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Run cargo check
run: |
cargo clean
./convert-to-heed3.sh
bash convert-to-heed3.sh
cargo check -p heed3
check_all_features:
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- name: Run cargo test
run: |
cargo clean
./convert-to-heed3.sh
bash convert-to-heed3.sh
cargo check --all-features -p heed3
examples:
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
- name: Run the examples
run: |
cargo clean
./convert-to-heed3.sh
bash convert-to-heed3.sh
cargo run --example 2>&1 | grep -E '^ '| xargs -n1 cargo run --example
fmt:
Expand Down
9 changes: 8 additions & 1 deletion convert-to-heed3.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

# This script is meant to setup the heed3 crate.
#

Expand All @@ -10,7 +12,12 @@ set -e

# It basically copy the heed3/Cargo.toml file into
# the heed folder...
cp heed3/Cargo.toml heed/Cargo.toml
if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then
echo 'I did it on Windows'
cp heed3\\Cargo.toml heed\\Cargo.toml
else
cp heed3/Cargo.toml heed/Cargo.toml
fi

# ...and replaces the `heed::` string by the `heed3::` one.
for file in $(find heed/src -type f -name "*.rs"); do
Expand Down

0 comments on commit 3b853ff

Please sign in to comment.