Fix Forgejo compatibility: use proper runner labels and container configuration
Some checks are pending
Build Packages / Build libostree Backport (push) Waiting to run
Build Packages / Build bootc Package (push) Blocked by required conditions
Build Packages / Create Combined Artifacts (push) Blocked by required conditions
Test Build / Test bootc Build (with existing libostree) (push) Waiting to run
Some checks are pending
Build Packages / Build libostree Backport (push) Waiting to run
Build Packages / Build bootc Package (push) Blocked by required conditions
Build Packages / Create Combined Artifacts (push) Blocked by required conditions
Test Build / Test bootc Build (with existing libostree) (push) Waiting to run
This commit is contained in:
parent
25a684578a
commit
8c0c7555fe
3 changed files with 38 additions and 26 deletions
|
|
@ -5,6 +5,7 @@ on:
|
||||||
branches: [ main, master ]
|
branches: [ main, master ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main, master ]
|
branches: [ main, master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
UBUNTU_VERSION: "24.04"
|
UBUNTU_VERSION: "24.04"
|
||||||
|
|
@ -15,20 +16,22 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build-libostree-backport:
|
build-libostree-backport:
|
||||||
name: Build libostree Backport
|
name: Build libostree Backport
|
||||||
runs-on: ubuntu-latest
|
runs-on: [linux, x64, docker:dind]
|
||||||
|
container:
|
||||||
|
image: ubuntu:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup build environment
|
- name: Setup build environment
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
apt update -y
|
||||||
sudo apt install -y devscripts build-essential wget
|
apt install -y devscripts build-essential wget
|
||||||
|
|
||||||
- name: Add source repositories
|
- name: Add source repositories
|
||||||
run: |
|
run: |
|
||||||
echo "deb-src http://us.archive.ubuntu.com/ubuntu/ noble main universe" | sudo tee /etc/apt/sources.list.d/noble-sources.list
|
echo "deb-src http://us.archive.ubuntu.com/ubuntu/ noble main universe" | tee /etc/apt/sources.list.d/noble-sources.list
|
||||||
sudo apt update
|
apt update
|
||||||
|
|
||||||
- name: Create backport directory
|
- name: Create backport directory
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -56,7 +59,7 @@ jobs:
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
cd /opt/Projects/ostree-backport-noble/ostree-${OSTREE_VERSION}
|
cd /opt/Projects/ostree-backport-noble/ostree-${OSTREE_VERSION}
|
||||||
sudo apt build-dep ./
|
apt build-dep ./
|
||||||
|
|
||||||
- name: Build libostree backport
|
- name: Build libostree backport
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -64,7 +67,7 @@ jobs:
|
||||||
dpkg-buildpackage -us -uc -b
|
dpkg-buildpackage -us -uc -b
|
||||||
|
|
||||||
- name: Upload libostree artifacts
|
- name: Upload libostree artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: libostree-backport-packages
|
name: libostree-backport-packages
|
||||||
path: /opt/Projects/ostree-backport-noble/*.deb
|
path: /opt/Projects/ostree-backport-noble/*.deb
|
||||||
|
|
@ -72,27 +75,29 @@ jobs:
|
||||||
|
|
||||||
build-bootc:
|
build-bootc:
|
||||||
name: Build bootc Package
|
name: Build bootc Package
|
||||||
runs-on: ubuntu-latest
|
runs-on: [linux, x64, docker:dind]
|
||||||
|
container:
|
||||||
|
image: ubuntu:latest
|
||||||
needs: build-libostree-backport
|
needs: build-libostree-backport
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download libostree artifacts
|
- name: Download libostree artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: libostree-backport-packages
|
name: libostree-backport-packages
|
||||||
path: /tmp/libostree-packages
|
path: /tmp/libostree-packages
|
||||||
|
|
||||||
- name: Install libostree backport
|
- name: Install libostree backport
|
||||||
run: |
|
run: |
|
||||||
sudo dpkg -i /tmp/libostree-packages/*.deb || true
|
dpkg -i /tmp/libostree-packages/*.deb || true
|
||||||
sudo apt --fix-broken install -y
|
apt --fix-broken install -y
|
||||||
|
|
||||||
- name: Setup build environment
|
- name: Setup build environment
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
apt update -y
|
||||||
sudo apt install -y git cargo rustc pkg-config build-essential
|
apt install -y git cargo rustc pkg-config build-essential
|
||||||
|
|
||||||
- name: Clone bootc source
|
- name: Clone bootc source
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -115,7 +120,7 @@ jobs:
|
||||||
dpkg-buildpackage -us -uc -b
|
dpkg-buildpackage -us -uc -b
|
||||||
|
|
||||||
- name: Upload bootc artifacts
|
- name: Upload bootc artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: bootc-packages
|
name: bootc-packages
|
||||||
path: bootc-${BOOTC_VERSION}/../*.deb
|
path: bootc-${BOOTC_VERSION}/../*.deb
|
||||||
|
|
@ -123,11 +128,13 @@ jobs:
|
||||||
|
|
||||||
create-artifacts:
|
create-artifacts:
|
||||||
name: Create Combined Artifacts
|
name: Create Combined Artifacts
|
||||||
runs-on: ubuntu-latest
|
runs-on: [linux, x64, docker:dind]
|
||||||
|
container:
|
||||||
|
image: ubuntu:latest
|
||||||
needs: [build-libostree-backport, build-bootc]
|
needs: [build-libostree-backport, build-bootc]
|
||||||
steps:
|
steps:
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/artifacts
|
path: /tmp/artifacts
|
||||||
|
|
||||||
|
|
@ -138,7 +145,7 @@ jobs:
|
||||||
cp /tmp/artifacts/bootc-packages/*.deb release-assets/ 2>/dev/null || true
|
cp /tmp/artifacts/bootc-packages/*.deb release-assets/ 2>/dev/null || true
|
||||||
|
|
||||||
- name: Upload combined artifacts
|
- name: Upload combined artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release-assets
|
name: release-assets
|
||||||
path: release-assets/
|
path: release-assets/
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ on:
|
||||||
branches: [ main, master ]
|
branches: [ main, master ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main, master ]
|
branches: [ main, master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BOOTC_VERSION: "1.5.1"
|
BOOTC_VERSION: "1.5.1"
|
||||||
|
|
@ -12,15 +13,17 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
test-bootc-build:
|
test-bootc-build:
|
||||||
name: Test bootc Build (with existing libostree)
|
name: Test bootc Build (with existing libostree)
|
||||||
runs-on: ubuntu-latest
|
runs-on: [linux, x64, docker:dind]
|
||||||
|
container:
|
||||||
|
image: ubuntu:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup build environment
|
- name: Setup build environment
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
apt update -y
|
||||||
sudo apt install -y git cargo rustc pkg-config build-essential
|
apt install -y git cargo rustc pkg-config build-essential
|
||||||
|
|
||||||
- name: Check libostree version
|
- name: Check libostree version
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,18 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
update-readme:
|
update-readme:
|
||||||
name: Update README with Artifact Links
|
name: Update README with Artifact Links
|
||||||
runs-on: ubuntu-latest
|
runs-on: [linux, x64, docker:dind]
|
||||||
|
container:
|
||||||
|
image: ubuntu:latest
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Download artifacts from previous workflow
|
- name: Download artifacts from previous workflow
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release-assets
|
name: release-assets
|
||||||
path: /tmp/artifacts
|
path: /tmp/artifacts
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue