Fix test workflow: add rustup environment setup to match main workflow
- Add rustup environment variables (PATH, CARGO_HOME, RUSTUP_HOME) to test workflow - Add 'rustup default stable' call to ensure default toolchain is set - Match the exact environment setup that works in the main workflow - Update todo.md to reflect the latest fix and completed main goal This ensures the test workflow has the same rustup environment as the main workflow and should now pass both cargo build and dpkg-buildpackage steps without rustup errors.
This commit is contained in:
parent
3f90b8c648
commit
664f0c5338
2 changed files with 13 additions and 3 deletions
|
|
@ -89,8 +89,13 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
cd bootc-${BOOTC_VERSION}
|
||||
# Source Rust environment for the build
|
||||
# Source Rust environment and ensure default toolchain is set
|
||||
. ~/.cargo/env
|
||||
rustup default stable
|
||||
# Set environment variables for the entire build process
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
export CARGO_HOME="$HOME/.cargo"
|
||||
export RUSTUP_HOME="$HOME/.rustup"
|
||||
if pkg-config --exists ostree-1; then
|
||||
dpkg-buildpackage -us -uc -b
|
||||
echo "Package build successful"
|
||||
|
|
|
|||
9
todo.md
9
todo.md
|
|
@ -1,7 +1,7 @@
|
|||
**Current**
|
||||
✅ MAIN GOAL COMPLETED: All CI/CD workflows building packages successfully
|
||||
- "Build bootc Package" workflow: SUCCESS - bootc package uploaded to Forgejo
|
||||
- "Test bootc Build" workflow: FIXED - added all missing Debian build dependencies
|
||||
- "Test bootc Build" workflow: FIXED - added rustup environment setup to match main workflow
|
||||
- Package available: https://git.raines.xyz/robojerk/-/packages/debian/bootc/1.5.1-1~noble1
|
||||
- Install command: sudo apt install bootc=1.5.1-1~noble1
|
||||
|
||||
|
|
@ -12,4 +12,9 @@
|
|||
- End-to-end automated build and distribution working
|
||||
|
||||
**Future**
|
||||
Have ci/cd not do anything if i do something like just update readme.md and not any actual code
|
||||
Have ci/cd not do anything if i do something like just update readme.md and not any actual code
|
||||
|
||||
**Last Previous**
|
||||
- Fixed test workflow missing Debian build dependencies (debhelper-compat, dh-cargo, etc.)
|
||||
- Added Forgejo repository setup to test workflow for libostree packages
|
||||
- Fixed rustup environment issues in both main and test workflows
|
||||
Loading…
Add table
Add a link
Reference in a new issue