Skip to content

Commit 29c8aff

Browse files
mivertowskiclaude
andcommitted
ci: fix CI workflow to checkout RustCompute dependency
- Checkout RustKernels into RustKernels/RustKernels/ to match the path dependency structure in Cargo.toml - Checkout RustCompute into RustCompute/RustCompute/ so the relative path ../../RustCompute/RustCompute/ resolves correctly - Update all working-directory and path references Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 268eb90 commit 29c8aff

1 file changed

Lines changed: 70 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 70 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
19+
with:
20+
path: RustKernels/RustKernels
21+
22+
- name: Checkout RustCompute
23+
uses: actions/checkout@v4
24+
with:
25+
repository: mivertowski/RustCompute
26+
path: RustCompute/RustCompute
1927

2028
- name: Install Rust toolchain
2129
uses: dtolnay/rust-toolchain@stable
@@ -28,21 +36,25 @@ jobs:
2836
path: |
2937
~/.cargo/registry
3038
~/.cargo/git
31-
target
32-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
39+
RustKernels/RustKernels/target
40+
key: ${{ runner.os }}-cargo-${{ hashFiles('RustKernels/RustKernels/**/Cargo.lock') }}
3341
restore-keys: |
3442
${{ runner.os }}-cargo-
3543
3644
- name: Check formatting
45+
working-directory: RustKernels/RustKernels
3746
run: cargo fmt --all -- --check
3847

3948
- name: Run clippy
49+
working-directory: RustKernels/RustKernels
4050
run: cargo clippy --all-targets --all-features -- -D warnings
4151

4252
- name: Check default features
53+
working-directory: RustKernels/RustKernels
4354
run: cargo check
4455

4556
- name: Check with all features
57+
working-directory: RustKernels/RustKernels
4658
run: cargo check --all-features
4759

4860
test:
@@ -53,6 +65,14 @@ jobs:
5365
rust: [stable, beta]
5466
steps:
5567
- uses: actions/checkout@v4
68+
with:
69+
path: RustKernels/RustKernels
70+
71+
- name: Checkout RustCompute
72+
uses: actions/checkout@v4
73+
with:
74+
repository: mivertowski/RustCompute
75+
path: RustCompute/RustCompute
5676

5777
- name: Install Rust ${{ matrix.rust }}
5878
uses: dtolnay/rust-toolchain@stable
@@ -65,15 +85,17 @@ jobs:
6585
path: |
6686
~/.cargo/registry
6787
~/.cargo/git
68-
target
69-
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
88+
RustKernels/RustKernels/target
89+
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('RustKernels/RustKernels/**/Cargo.lock') }}
7090
restore-keys: |
7191
${{ runner.os }}-cargo-${{ matrix.rust }}-
7292
7393
- name: Run tests (default features)
94+
working-directory: RustKernels/RustKernels
7495
run: cargo test --workspace
7596

7697
- name: Run tests (all features)
98+
working-directory: RustKernels/RustKernels
7799
run: cargo test --workspace --all-features
78100

79101
test-domains:
@@ -98,6 +120,14 @@ jobs:
98120
- audit
99121
steps:
100122
- uses: actions/checkout@v4
123+
with:
124+
path: RustKernels/RustKernels
125+
126+
- name: Checkout RustCompute
127+
uses: actions/checkout@v4
128+
with:
129+
repository: mivertowski/RustCompute
130+
path: RustCompute/RustCompute
101131

102132
- name: Install Rust toolchain
103133
uses: dtolnay/rust-toolchain@stable
@@ -108,19 +138,28 @@ jobs:
108138
path: |
109139
~/.cargo/registry
110140
~/.cargo/git
111-
target
112-
key: ${{ runner.os }}-cargo-domain-${{ matrix.domain }}-${{ hashFiles('**/Cargo.lock') }}
141+
RustKernels/RustKernels/target
142+
key: ${{ runner.os }}-cargo-domain-${{ matrix.domain }}-${{ hashFiles('RustKernels/RustKernels/**/Cargo.lock') }}
113143
restore-keys: |
114144
${{ runner.os }}-cargo-domain-
115145
116146
- name: Test ${{ matrix.domain }} domain
147+
working-directory: RustKernels/RustKernels
117148
run: cargo test --package rustkernel-${{ matrix.domain }}
118149

119150
docs:
120151
name: Documentation
121152
runs-on: ubuntu-latest
122153
steps:
123154
- uses: actions/checkout@v4
155+
with:
156+
path: RustKernels/RustKernels
157+
158+
- name: Checkout RustCompute
159+
uses: actions/checkout@v4
160+
with:
161+
repository: mivertowski/RustCompute
162+
path: RustCompute/RustCompute
124163

125164
- name: Install Rust toolchain
126165
uses: dtolnay/rust-toolchain@stable
@@ -131,12 +170,13 @@ jobs:
131170
path: |
132171
~/.cargo/registry
133172
~/.cargo/git
134-
target
135-
key: ${{ runner.os }}-cargo-docs-${{ hashFiles('**/Cargo.lock') }}
173+
RustKernels/RustKernels/target
174+
key: ${{ runner.os }}-cargo-docs-${{ hashFiles('RustKernels/RustKernels/**/Cargo.lock') }}
136175
restore-keys: |
137176
${{ runner.os }}-cargo-docs-
138177
139178
- name: Build documentation
179+
working-directory: RustKernels/RustKernels
140180
run: cargo doc --workspace --no-deps --all-features
141181
env:
142182
RUSTDOCFLAGS: -Dwarnings
@@ -146,6 +186,14 @@ jobs:
146186
runs-on: ubuntu-latest
147187
steps:
148188
- uses: actions/checkout@v4
189+
with:
190+
path: RustKernels/RustKernels
191+
192+
- name: Checkout RustCompute
193+
uses: actions/checkout@v4
194+
with:
195+
repository: mivertowski/RustCompute
196+
path: RustCompute/RustCompute
149197

150198
- name: Install Rust toolchain
151199
uses: dtolnay/rust-toolchain@stable
@@ -156,36 +204,49 @@ jobs:
156204
uses: taiki-e/install-action@cargo-llvm-cov
157205

158206
- name: Generate coverage report
207+
working-directory: RustKernels/RustKernels
159208
run: cargo llvm-cov --workspace --all-features --lcov --output-path lcov.info
160209

161210
- name: Upload coverage to Codecov
162211
uses: codecov/codecov-action@v4
163212
with:
164-
files: lcov.info
213+
files: RustKernels/RustKernels/lcov.info
165214
fail_ci_if_error: false
166215

167216
msrv:
168217
name: Minimum Supported Rust Version
169218
runs-on: ubuntu-latest
170219
steps:
171220
- uses: actions/checkout@v4
221+
with:
222+
path: RustKernels/RustKernels
223+
224+
- name: Checkout RustCompute
225+
uses: actions/checkout@v4
226+
with:
227+
repository: mivertowski/RustCompute
228+
path: RustCompute/RustCompute
172229

173230
- name: Install Rust 1.85
174231
uses: dtolnay/rust-toolchain@stable
175232
with:
176233
toolchain: "1.85"
177234

178235
- name: Check MSRV
236+
working-directory: RustKernels/RustKernels
179237
run: cargo check --workspace
180238

181239
security-audit:
182240
name: Security Audit
183241
runs-on: ubuntu-latest
184242
steps:
185243
- uses: actions/checkout@v4
244+
with:
245+
path: RustKernels/RustKernels
186246

187247
- name: Install cargo-audit
188248
run: cargo install cargo-audit
189249

190250
- name: Run security audit
251+
working-directory: RustKernels/RustKernels
191252
run: cargo audit

0 commit comments

Comments
 (0)