Skip to content

Commit

Permalink
CI: Add 'if: always()' for steps
Browse files Browse the repository at this point in the history
Ensure that subsequent steps are executed regardless of the success or
failure of previous steps while providing more explicit control over step
execution.
  • Loading branch information
eleanorLYJ committed Jan 16, 2025
1 parent be10551 commit 99c52b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
env:
CC: ${{ steps.install_cc.outputs.cc }}
run: make -j$(nproc)
if: ${{ always() }}
- name: check + tests
env:
CC: ${{ steps.install_cc.outputs.cc }}
Expand All @@ -71,6 +72,7 @@ jobs:
make tests -j$(nproc)
make misalign -j$(nproc)
make tool -j$(nproc)
if: ${{ always() }}
- name: diverse configurations
env:
CC: ${{ steps.install_cc.outputs.cc }}
Expand All @@ -88,23 +90,27 @@ jobs:
make distclean && make ENABLE_Zbc=0 check -j$(nproc)
make distclean && make ENABLE_Zbs=0 check -j$(nproc)
make distclean && make ENABLE_Zifencei=0 check -j$(nproc)
if: ${{ always() }}
- name: misalignment test in block emulation
env:
CC: ${{ steps.install_cc.outputs.cc }}
run: |
make -C tests/system/alignment/
make distclean && make ENABLE_ELF_LOADER=1 ENABLE_EXT_C=0 ENABLE_SYSTEM=1 misalign-in-blk-emu -j$(nproc)
if: ${{ always() }}
- name: MMU test
env:
CC: ${{ steps.install_cc.outputs.cc }}
run: |
make -C tests/system/mmu/
make distclean && make ENABLE_ELF_LOADER=1 ENABLE_SYSTEM=1 mmu-test -j$(nproc)
if: ${{ always() }}
- name: gdbstub test
env:
CC: ${{ steps.install_cc.outputs.cc }}
run: |
make distclean && make ENABLE_GDBSTUB=1 gdbstub-test -j$(nproc)
if: ${{ always() }}
- name: JIT test
env:
CC: ${{ steps.install_cc.outputs.cc }}
Expand All @@ -122,17 +128,20 @@ jobs:
make ENABLE_JIT=1 clean && make ENABLE_Zifencei=0 ENABLE_JIT=1 check -j$(nproc)
make ENABLE_JIT=1 clean && make ENABLE_MOP_FUSION=0 ENABLE_JIT=1 check -j$(nproc)
make ENABLE_JIT=1 clean && make ENABLE_BLOCK_CHAINING=0 ENABLE_JIT=1 check -j$(nproc)
if: ${{ always() }}
- name: undefined behavior test
run: |
make clean && make ENABLE_UBSAN=1 check -j$(nproc)
make ENABLE_JIT=1 clean && make ENABLE_JIT=1 ENABLE_UBSAN=1 check -j$(nproc)
if: ${{ always() }}
- name: boot Linux kernel test
env:
CC: ${{ steps.install_cc.outputs.cc }}
run: |
make clean && make ENABLE_SYSTEM=1 && make ENABLE_SYSTEM=1 artifact -j$(nproc)
.ci/boot-linux.sh
make ENABLE_SYSTEM=1 clean
if: ${{ always() }}

host-arm64:
needs: [detect-code-related-file-changes]
Expand Down

0 comments on commit 99c52b9

Please sign in to comment.