mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
eec8b9b929
The GH artifacts action now lets you disable auto-zipping your artifacts. Previously, GH would always automatically put your artifacts in a ZIP file. This is annoying when your artifacts are already in a tarball. Also update the following action versions checkout: v4 -> v6 upload-artifact: v4 -> v7 download-artifact: v4 -> v8 Lastly, fix a issue where zfs-qmeu-packages now needs to power cycle the VM. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #18411
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
name: smatch
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
smatch:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout smatch
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: error27/smatch
|
|
ref: master
|
|
path: smatch
|
|
- name: Install smatch dependencies
|
|
run: |
|
|
sudo apt-get install -y llvm gcc make sqlite3 libsqlite3-dev libdbd-sqlite3-perl libssl-dev libtry-tiny-perl
|
|
- name: Make smatch
|
|
run: |
|
|
cd $GITHUB_WORKSPACE/smatch
|
|
make -j$(nproc)
|
|
- name: Checkout OpenZFS
|
|
uses: actions/checkout@v6
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
path: zfs
|
|
- name: Install OpenZFS dependencies
|
|
run: |
|
|
cd $GITHUB_WORKSPACE/zfs
|
|
sudo apt-get purge -y snapd google-chrome-stable firefox
|
|
ONLY_DEPS=1 .github/workflows/scripts/qemu-3-deps-vm.sh ubuntu24
|
|
- name: Autogen.sh OpenZFS
|
|
run: |
|
|
cd $GITHUB_WORKSPACE/zfs
|
|
./autogen.sh
|
|
- name: Configure OpenZFS
|
|
run: |
|
|
cd $GITHUB_WORKSPACE/zfs
|
|
./configure --enable-debug
|
|
- name: Make OpenZFS
|
|
run: |
|
|
cd $GITHUB_WORKSPACE/zfs
|
|
make -j$(nproc) CHECK="$GITHUB_WORKSPACE/smatch/smatch" CC=$GITHUB_WORKSPACE/smatch/cgcc | tee $GITHUB_WORKSPACE/smatch.log
|
|
- name: Smatch results log
|
|
run: |
|
|
grep -E 'error:|warn:|warning:' $GITHUB_WORKSPACE/smatch.log
|