Skip to content

Archlinux Kernel based on different schedulers and some other performance improvements.

ci: Rewrite using matrix feature

Vasiliy Stelmachenokf55e49f4a9b8
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..92579f1b
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,30 @@
+name: Build and lint
+on:
+ push:
+ paths:
+ - 'linux-cachyos/PKGBUILD'
+ - '.github/workflows/build.yml'
+ workflow_dispatch:
+
+jobs:
+ build:
+ name: linux-cachyos
+ strategy:
+ matrix:
+ toolchain: [GCC, LLVM]
+
+ runs-on: ubuntu-latest
+ container: archlinux:base-devel
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Build (${{ matrix.toolchain }})
+ id: makepkg
+ uses: CachyOS/pkgbuild-action@master
+ env:
+ _build_zfs: yes
+ _use_llvm_lto: ${{ matrix.toolchain == 'GCC' && 'none' || 'thin' }}
+ with:
+ pkgdir: "linux-cachyos"
+ namcapExcludeRules: "invalidstartdir"
+ makepkgArgs: "--skipchecksums --skippgpcheck --noconfirm -s"
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
deleted file mode 100644
index de909785..00000000
--- a/.github/workflows/lint.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Build and lint
-on:
- push:
- paths:
- - 'linux-cachyos/PKGBUILD'
- - '.github/workflows/lint.yml'
- workflow_dispatch:
-
-jobs:
- linux-cachyos-zfs-gcc:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Build (GCC)
- id: makepkg
- uses: CachyOS/pkgbuild-action@master
- env:
- _build_zfs: yes
- _use_llvm_lto: none
- with:
- pkgdir: "linux-cachyos"
- namcapExcludeRules: "invalidstartdir"
- makepkgArgs: "--skipchecksums --skippgpcheck --noconfirm -s"
- linux-cachyos-zfs-llvm:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Build (LLVM)
- id: makepkg
- uses: CachyOS/pkgbuild-action@master
- env:
- _build_zfs: yes
- with:
- pkgdir: "linux-cachyos"
- namcapExcludeRules: "invalidstartdir"
- makepkgArgs: "--skipchecksums --skippgpcheck --noconfirm -s"