Fix test workflow: add rustup environment setup to match main workflow
All checks were successful
Build bootc Package / Build bootc Package (push) Successful in 5m52s
Test Build / Test bootc Build (with existing libostree) (push) Successful in 7m57s

- 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:
robojerk 2025-07-22 00:07:27 +00:00
parent 3f90b8c648
commit 664f0c5338
2 changed files with 13 additions and 3 deletions

View file

@ -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"

View file

@ -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