|
1 | | -name: checkstyle |
| 1 | +name: Mixed inputs |
2 | 2 |
|
3 | 3 | 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 |
10 | 19 |
|
11 | 20 | jobs: |
12 | | - checkstyle: |
13 | | - runs-on: ubuntu-22.04 |
| 21 | + greet: |
| 22 | + runs-on: ubuntu-latest |
| 23 | + |
14 | 24 | 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 }}" |
0 commit comments