mirror of
https://github.com/strongtz/i915-sriov-dkms.git
synced 2026-05-06 13:42:34 +08:00
update ci
This commit is contained in:
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential devscripts dh-make dh-dkms dkms
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: i915-sriov-dkms
|
||||
- name: Packaging
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
sed -i "s/###LATEST_VERSION###/$LATEST_VERSION/g" debian/control debian/changelog
|
||||
dpkg-buildpackage -b -tc -us -uc
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: debain-package
|
||||
path: "*.deb"
|
||||
@@ -41,7 +41,7 @@ jobs:
|
||||
sed -i 's/COMPRESSZST=.*/COMPRESSZST=(zstd -c -T0 --ultra -22 -)/' /etc/makepkg.conf
|
||||
echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: i915-sriov-dkms
|
||||
- name: Packaging
|
||||
@@ -50,7 +50,7 @@ jobs:
|
||||
chown -R user: .
|
||||
sudo -u user makepkg -s --noconfirm
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: arch-package
|
||||
path: "i915-sriov-dkms/*.pkg*"
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
merge-multiple: true
|
||||
- name: Create Release
|
||||
|
||||
28
.github/workflows/test.yml
vendored
28
.github/workflows/test.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
apt-get upgrade -y
|
||||
apt-get install -y build-essential elfutils libelf-dev proxmox-default-kernel proxmox-default-headers
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: i915-sriov-dkms
|
||||
- name: Check Kernel Compatibility
|
||||
@@ -56,6 +56,26 @@ jobs:
|
||||
KERNELRELEASE=$(echo -n "$KERNEL_SOURCE_DIR" | sed 's/.*\/lib\/modules\///g;s/\/build//')
|
||||
make -j$(nproc) KERNELRELEASE=$KERNELRELEASE -C $KERNEL_SOURCE_DIR M=$(pwd)
|
||||
|
||||
test-ubuntu-questing:
|
||||
runs-on: ubuntu-24.04
|
||||
container:
|
||||
image: ubuntu:25.10
|
||||
steps:
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y git build-essential linux-generic linux-headers-generic
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: i915-sriov-dkms
|
||||
- name: Build Module
|
||||
working-directory: i915-sriov-dkms
|
||||
run: |
|
||||
KERNEL_SOURCE_DIR=$(dpkg -L $(dpkg -s linux-headers-generic | grep "Depends: " | cut -d " " -f2) | grep -m 1 -Eo ".*/lib/modules/[^/]+/build")
|
||||
KERNELRELEASE=$(echo -n "$KERNEL_SOURCE_DIR" | sed 's/.*\/lib\/modules\///g;s/\/build//')
|
||||
make -j$(nproc) KERNELRELEASE=$KERNELRELEASE -C $KERNEL_SOURCE_DIR M=$(pwd)
|
||||
|
||||
test-archlinux:
|
||||
runs-on: ubuntu-24.04
|
||||
container:
|
||||
@@ -66,7 +86,7 @@ jobs:
|
||||
pacman-key --init
|
||||
pacman -Syu --noconfirm git linux linux-headers
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: i915-sriov-dkms
|
||||
- name: Check Kernel Compatibility
|
||||
@@ -105,7 +125,7 @@ jobs:
|
||||
pacman-key --init
|
||||
pacman -Syu --noconfirm git linux-lts linux-lts-headers
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: i915-sriov-dkms
|
||||
- name: Check Kernel Compatibility
|
||||
@@ -149,7 +169,7 @@ jobs:
|
||||
EOF
|
||||
pacman -Syu --noconfirm git linux-mainline linux-mainline-headers
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: i915-sriov-dkms
|
||||
- name: Check Kernel Compatibility
|
||||
|
||||
Reference in New Issue
Block a user