Skip to content

Commit 7851428

Browse files
committed
fix: github actions and cargo.lock removed from .gitignore
1 parent 0a41113 commit 7851428

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/run-dagger-ci-pipeline.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ jobs:
5050
source dagger_python/venv/bin/activate
5151
5252
# Step 7: Install maturin (for Rust-Python bindings)
53-
- name: Install maturin
53+
- name: Install maturin & build Rust dependencies
5454
run: |
5555
source dagger_python/venv/bin/activate
5656
pip install maturin
57+
cd rust_project_directory # Change this if your Rust code is in another directory
58+
cargo check # Ensures Cargo.lock is generated
5759
5860
# Step 8: Install Python dependencies (from requirements.txt)
5961
- name: Install dependencies

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ debug/
294294

295295
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
296296
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
297-
Cargo.lock
297+
#Cargo.lock
298298

299299
# These are backup files generated by rustfmt
300300
**/*.rs.bk

0 commit comments

Comments
 (0)