Skip to content

Commit 4e25d9a

Browse files
committed
Test
1 parent 219a89c commit 4e25d9a

File tree

13 files changed

+60
-306
lines changed

13 files changed

+60
-306
lines changed

.github/codecov.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/codeql-cpp.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/codeql-python.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/no-response.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/stale.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/checkstyle.yaml

Lines changed: 21 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,26 @@
1-
name: checkstyle
1+
name: Mixed inputs
22

33
on:
4-
push:
5-
pull_request:
6-
7-
concurrency:
8-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9-
cancel-in-progress: true
4+
workflow_dispatch:
5+
inputs:
6+
name:
7+
type: choice
8+
description: Who to greet
9+
options:
10+
- monalisa
11+
- cschleiden
12+
message:
13+
required: true
14+
use-emoji:
15+
type: boolean
16+
description: Include 🎉🤣 emojis
17+
environment:
18+
type: environment
1019

1120
jobs:
12-
checkstyle:
13-
runs-on: ubuntu-22.04
21+
greet:
22+
runs-on: ubuntu-latest
23+
1424
steps:
15-
- uses: actions/checkout@v4
16-
with:
17-
ref: ${{ github.event.pull_request.head.sha }}
18-
- name: Install dependencies
19-
run: |
20-
# for x in lxd core20 snapd; do sudo snap remove $x; done
21-
sudo apt-get purge -y snapd google-chrome-stable firefox
22-
ONLY_DEPS=1 .github/workflows/scripts/qemu-3-deps.sh ubuntu22
23-
sudo apt-get install -y cppcheck devscripts mandoc pax-utils shellcheck
24-
sudo python -m pipx install --quiet flake8
25-
# confirm that the tools are installed
26-
# the build system doesn't fail when they are not
27-
checkbashisms --version
28-
cppcheck --version
29-
flake8 --version
30-
scanelf --version
31-
shellcheck --version
32-
- name: Prepare
33-
run: |
34-
sed -i '/DEBUG_CFLAGS="-Werror"/s/^/#/' config/zfs-build.m4
35-
./autogen.sh
36-
- name: Configure
37-
run: |
38-
./configure
39-
- name: Make
40-
run: |
41-
make -j$(nproc) --no-print-directory --silent
42-
- name: Checkstyle
43-
run: |
44-
make -j$(nproc) --no-print-directory --silent checkstyle
45-
- name: Lint
46-
run: |
47-
make -j$(nproc) --no-print-directory --silent lint
48-
- name: CheckABI
49-
id: CheckABI
50-
run: |
51-
docker run -v $PWD:/source ghcr.io/openzfs/libabigail make -j$(nproc) --no-print-directory --silent checkabi
52-
- name: StoreABI
53-
if: failure() && steps.CheckABI.outcome == 'failure'
54-
run: |
55-
docker run -v $PWD:/source ghcr.io/openzfs/libabigail make -j$(nproc) --no-print-directory --silent storeabi
56-
- name: Prepare artifacts
57-
if: failure() && steps.CheckABI.outcome == 'failure'
58-
run: |
59-
find -name *.abi | tar -cf abi_files.tar -T -
60-
- uses: actions/upload-artifact@v4
61-
if: failure() && steps.CheckABI.outcome == 'failure'
62-
with:
63-
name: New ABI files (use only if you're sure about interface changes)
64-
path: abi_files.tar
25+
- name: Send greeting
26+
run: echo "${{ github.event.inputs.message }} ${{ fromJSON('["", "🥳"]')[github.event.inputs.use-emoji == 'true'] }} ${{ github.event.inputs.name }}"

.github/workflows/codeql.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/labels.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/scripts/qemu-4-build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,25 @@ uname -a > /var/tmp/uname.txt
125125
cd $HOME/zfs
126126
export PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
127127

128+
save_rpms=$2
129+
echo "2 is $2, $save_rpms"
130+
128131
# build
129132
case "$1" in
130133
freebsd*)
131134
freebsd
132135
;;
133136
alma*|centos*)
134137
rpm_build_and_install "--with-spec=redhat"
138+
if [ "$save_rpms" == "true" ] ; then
139+
make rpm-dkms
140+
fi
135141
;;
136142
fedora*)
137143
rpm_build_and_install
144+
if [ "$save_rpms" == "true" ] ; then
145+
make rpm-dkms
146+
fi
138147
;;
139148
debian*|ubuntu*)
140149
deb_build_and_install
@@ -144,9 +153,15 @@ case "$1" in
144153
;;
145154
esac
146155

156+
157+
147158
# building the zfs module was ok
148159
echo 0 > /var/tmp/build-exitcode.txt
149160

161+
if [ $save_rpms == "true" ] ; then
162+
cp *.rpm /var/tmp
163+
fi
164+
150165
# reset cloud-init configuration and poweroff
151166
sudo cloud-init clean --logs
152167
sync && sleep 2 && sudo poweroff &

.github/workflows/scripts/qemu-6-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
set -eu
1111

12+
cd /var/tmp
13+
echo 0 > tests-exitcode.txt
14+
exit
15+
1216
function prefix() {
1317
ID="$1"
1418
LINE="$2"

0 commit comments

Comments
 (0)