Fix Rust version requirement for bootc 1.5.1
Some checks failed
Build Packages / Build libostree Backport (push) Successful in 9m15s
Test Build / Test bootc Build (with existing libostree) (push) Failing after 1m15s
Build Packages / Build bootc Package (push) Failing after 1m18s
Build Packages / Create Combined Artifacts (push) Has been skipped
Some checks failed
Build Packages / Build libostree Backport (push) Successful in 9m15s
Test Build / Test bootc Build (with existing libostree) (push) Failing after 1m15s
Build Packages / Build bootc Package (push) Failing after 1m18s
Build Packages / Create Combined Artifacts (push) Has been skipped
- Replace system Rust 1.75.0 with rustup to get latest stable Rust - Update both build-packages.yml and test-build.yml workflows - Add source ~/.cargo/env to all Rust build steps - Add Rust version verification in setup steps This resolves the "requires rustc 1.82.0 or newer" error that was preventing bootc from building in the CI/CD environment.
This commit is contained in:
parent
6bc8f501a9
commit
5af727b34d
2 changed files with 33 additions and 3 deletions
|
|
@ -95,7 +95,15 @@ jobs:
|
|||
- name: Setup build environment
|
||||
run: |
|
||||
apt update -y
|
||||
apt install -y git cargo rustc pkg-config build-essential
|
||||
apt install -y git curl pkg-config build-essential
|
||||
|
||||
# Install Rust using rustup to get the latest version
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
source ~/.cargo/env
|
||||
|
||||
# Verify Rust version
|
||||
rustc --version
|
||||
cargo --version
|
||||
|
||||
- name: Checkout repository manually
|
||||
run: |
|
||||
|
|
@ -114,7 +122,15 @@ jobs:
|
|||
- name: Setup build environment for bootc
|
||||
run: |
|
||||
apt update -y
|
||||
apt install -y git cargo rustc pkg-config build-essential
|
||||
apt install -y git curl pkg-config build-essential
|
||||
|
||||
# Install Rust using rustup to get the latest version
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
source ~/.cargo/env
|
||||
|
||||
# Verify Rust version
|
||||
rustc --version
|
||||
cargo --version
|
||||
|
||||
- name: Clone bootc source
|
||||
run: |
|
||||
|
|
@ -158,6 +174,8 @@ jobs:
|
|||
run: |
|
||||
cd bootc-${BOOTC_VERSION}
|
||||
echo "Building bootc package with libostree compatibility patch..."
|
||||
# Source Rust environment for the build
|
||||
source ~/.cargo/env
|
||||
dpkg-buildpackage -us -uc -b
|
||||
|
||||
- name: List built packages
|
||||
|
|
|
|||
|
|
@ -20,7 +20,15 @@ jobs:
|
|||
- name: Setup build environment
|
||||
run: |
|
||||
apt update -y
|
||||
apt install -y git cargo rustc pkg-config build-essential
|
||||
apt install -y git curl pkg-config build-essential
|
||||
|
||||
# Install Rust using rustup to get the latest version
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
source ~/.cargo/env
|
||||
|
||||
# Verify Rust version
|
||||
rustc --version
|
||||
cargo --version
|
||||
|
||||
- name: Checkout repository manually
|
||||
run: |
|
||||
|
|
@ -52,11 +60,15 @@ jobs:
|
|||
- name: Test cargo build
|
||||
run: |
|
||||
cd bootc-${BOOTC_VERSION}
|
||||
# Source Rust environment for the build
|
||||
source ~/.cargo/env
|
||||
cargo build --release
|
||||
|
||||
- name: Test package build (if libostree available)
|
||||
run: |
|
||||
cd bootc-${BOOTC_VERSION}
|
||||
# Source Rust environment for the build
|
||||
source ~/.cargo/env
|
||||
if pkg-config --exists ostree-1; then
|
||||
dpkg-buildpackage -us -uc -b
|
||||
echo "Package build successful"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue