Initial commit: Complete bootc packaging with CI/CD automation
Some checks failed
Build Packages / Build libostree Backport (push) Failing after 0s
Build Packages / Build bootc Package (push) Has been skipped
Test Build / Test bootc Build (with existing libostree) (push) Failing after 0s
Build Packages / Create Release (push) Has been skipped
Build Packages / Create Artifacts for README Update (push) Has been skipped
Some checks failed
Build Packages / Build libostree Backport (push) Failing after 0s
Build Packages / Build bootc Package (push) Has been skipped
Test Build / Test bootc Build (with existing libostree) (push) Failing after 0s
Build Packages / Create Release (push) Has been skipped
Build Packages / Create Artifacts for README Update (push) Has been skipped
This commit is contained in:
commit
695714a60e
15 changed files with 1545 additions and 0 deletions
58
.forgejo/workflows/test-build.yml
Normal file
58
.forgejo/workflows/test-build.yml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
name: Test Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, master ]
|
||||
pull_request:
|
||||
branches: [ main, master ]
|
||||
|
||||
env:
|
||||
BOOTC_VERSION: "1.5.1"
|
||||
|
||||
jobs:
|
||||
test-bootc-build:
|
||||
name: Test bootc Build (with existing libostree)
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup build environment
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y git cargo rustc pkg-config build-essential
|
||||
|
||||
- name: Check libostree version
|
||||
run: |
|
||||
pkg-config --modversion ostree-1 || echo "libostree not found"
|
||||
dpkg -l | grep libostree || echo "No libostree packages installed"
|
||||
|
||||
- name: Clone bootc source
|
||||
run: |
|
||||
git clone --depth 1 --branch v${BOOTC_VERSION} https://github.com/containers/bootc.git bootc-${BOOTC_VERSION}
|
||||
cd bootc-${BOOTC_VERSION}
|
||||
|
||||
- name: Apply compatibility patch
|
||||
run: |
|
||||
cd bootc-${BOOTC_VERSION}
|
||||
patch -p1 < ../bootc-libostree-compatibility.patch
|
||||
|
||||
- name: Copy debian packaging
|
||||
run: |
|
||||
cd bootc-${BOOTC_VERSION}
|
||||
cp -r ../debian .
|
||||
|
||||
- name: Test cargo build
|
||||
run: |
|
||||
cd bootc-${BOOTC_VERSION}
|
||||
cargo build --release
|
||||
|
||||
- name: Test package build (if libostree available)
|
||||
run: |
|
||||
cd bootc-${BOOTC_VERSION}
|
||||
if pkg-config --exists ostree-1; then
|
||||
dpkg-buildpackage -us -uc -b
|
||||
echo "Package build successful"
|
||||
else
|
||||
echo "Skipping package build - libostree not available"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue