Skip to content

Commit 11eaa3f

Browse files
committed
CI: use candle fork (git dep) instead of crates.io
1 parent 69fe860 commit 11eaa3f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
CARGO_TERM_COLOR: always
11+
CANDLE_REV: fast-conv-transpose1d-no-cudnn
1112

1213
jobs:
1314
fmt:
@@ -28,9 +29,9 @@ jobs:
2829

2930
- name: Patch candle deps for CI
3031
run: |
31-
sed -i 's|candle-core = { path = "[^"]*" }|candle-core = "0.9"|' Cargo.toml
32-
sed -i 's|candle-nn = { path = "[^"]*" }|candle-nn = "0.9"|' Cargo.toml
33-
sed -i 's|candle-transformers = { path = "[^"]*" }|candle-transformers = "0.9"|' Cargo.toml
32+
sed -i "s|candle-core = { path = \"[^\"]*\" }|candle-core = { git = \"https://github.com/Marenz/candle.git\", branch = \"$CANDLE_REV\" }|" Cargo.toml
33+
sed -i "s|candle-nn = { path = \"[^\"]*\" }|candle-nn = { git = \"https://github.com/Marenz/candle.git\", branch = \"$CANDLE_REV\" }|" Cargo.toml
34+
sed -i "s|candle-transformers = { path = \"[^\"]*\" }|candle-transformers = { git = \"https://github.com/Marenz/candle.git\", branch = \"$CANDLE_REV\" }|" Cargo.toml
3435
3536
- run: cargo build --no-default-features
3637

@@ -44,9 +45,9 @@ jobs:
4445

4546
- name: Patch candle deps for CI
4647
run: |
47-
sed -i 's|candle-core = { path = "[^"]*" }|candle-core = "0.9"|' Cargo.toml
48-
sed -i 's|candle-nn = { path = "[^"]*" }|candle-nn = "0.9"|' Cargo.toml
49-
sed -i 's|candle-transformers = { path = "[^"]*" }|candle-transformers = "0.9"|' Cargo.toml
48+
sed -i "s|candle-core = { path = \"[^\"]*\" }|candle-core = { git = \"https://github.com/Marenz/candle.git\", branch = \"$CANDLE_REV\" }|" Cargo.toml
49+
sed -i "s|candle-nn = { path = \"[^\"]*\" }|candle-nn = { git = \"https://github.com/Marenz/candle.git\", branch = \"$CANDLE_REV\" }|" Cargo.toml
50+
sed -i "s|candle-transformers = { path = \"[^\"]*\" }|candle-transformers = { git = \"https://github.com/Marenz/candle.git\", branch = \"$CANDLE_REV\" }|" Cargo.toml
5051
5152
- run: cargo test --no-default-features
5253

@@ -60,8 +61,8 @@ jobs:
6061

6162
- name: Patch candle deps for CI
6263
run: |
63-
sed -i 's|candle-core = { path = "[^"]*" }|candle-core = "0.9"|' Cargo.toml
64-
sed -i 's|candle-nn = { path = "[^"]*" }|candle-nn = "0.9"|' Cargo.toml
65-
sed -i 's|candle-transformers = { path = "[^"]*" }|candle-transformers = "0.9"|' Cargo.toml
64+
sed -i "s|candle-core = { path = \"[^\"]*\" }|candle-core = { git = \"https://github.com/Marenz/candle.git\", branch = \"$CANDLE_REV\" }|" Cargo.toml
65+
sed -i "s|candle-nn = { path = \"[^\"]*\" }|candle-nn = { git = \"https://github.com/Marenz/candle.git\", branch = \"$CANDLE_REV\" }|" Cargo.toml
66+
sed -i "s|candle-transformers = { path = \"[^\"]*\" }|candle-transformers = { git = \"https://github.com/Marenz/candle.git\", branch = \"$CANDLE_REV\" }|" Cargo.toml
6667
6768
- run: cargo clippy --no-default-features -- -D warnings

0 commit comments

Comments
 (0)