|
8 | 8 |
|
9 | 9 | env: |
10 | 10 | CARGO_TERM_COLOR: always |
| 11 | + CANDLE_REV: fast-conv-transpose1d-no-cudnn |
11 | 12 |
|
12 | 13 | jobs: |
13 | 14 | fmt: |
|
28 | 29 |
|
29 | 30 | - name: Patch candle deps for CI |
30 | 31 | 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 |
34 | 35 |
|
35 | 36 | - run: cargo build --no-default-features |
36 | 37 |
|
|
44 | 45 |
|
45 | 46 | - name: Patch candle deps for CI |
46 | 47 | 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 |
50 | 51 |
|
51 | 52 | - run: cargo test --no-default-features |
52 | 53 |
|
|
60 | 61 |
|
61 | 62 | - name: Patch candle deps for CI |
62 | 63 | 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 |
66 | 67 |
|
67 | 68 | - run: cargo clippy --no-default-features -- -D warnings |
0 commit comments