Skip to content

Commit d8bcae1

Browse files
committed
Try to fix the Windows CI
1 parent de53bec commit d8bcae1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Run cargo check
5252
run: |
5353
cargo clean
54-
./convert-to-heed3.sh
54+
bash convert-to-heed3.sh
5555
cargo check -p heed3
5656
5757
check_all_features:
@@ -104,7 +104,7 @@ jobs:
104104
- name: Run cargo test
105105
run: |
106106
cargo clean
107-
./convert-to-heed3.sh
107+
bash convert-to-heed3.sh
108108
cargo check --all-features -p heed3
109109
110110
examples:
@@ -155,7 +155,7 @@ jobs:
155155
- name: Run the examples
156156
run: |
157157
cargo clean
158-
./convert-to-heed3.sh
158+
bash convert-to-heed3.sh
159159
cargo run --example 2>&1 | grep -E '^ '| xargs -n1 cargo run --example
160160
161161
fmt:

convert-to-heed3.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env bash
2+
13
# This script is meant to setup the heed3 crate.
24
#
35

@@ -10,7 +12,11 @@ set -e
1012

1113
# It basically copy the heed3/Cargo.toml file into
1214
# the heed folder...
13-
cp heed3/Cargo.toml heed/Cargo.toml
15+
if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then
16+
cp heed3\\Cargo.toml heed\\Cargo.toml
17+
else
18+
cp heed3/Cargo.toml heed/Cargo.toml
19+
fi
1420

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

0 commit comments

Comments
 (0)