Skip to content

Commit 50ff436

Browse files
committed
Enhance workflow procedure
This patch enhances workflow procedure by separating each critical checks from single step to multiple steps, allows developers and reviewers to better locate which check fails instead of checking raw output log.
1 parent 8e07fda commit 50ff436

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,32 @@ jobs:
1010
compiler: [gcc, clang]
1111
architecture: [arm, riscv]
1212
steps:
13-
- name: checkout code
13+
- name: Checkout code
1414
uses: actions/checkout@v4
15-
- name: build artifact
16-
env:
17-
CC: ${{ matrix.compiler }}
15+
- name: Download dependencies
1816
run: |
1917
sudo apt-get update -q -y
2018
sudo apt-get install -q -y graphviz jq
2119
sudo apt-get install -q -y qemu-user
2220
sudo apt-get install -q -y build-essential
21+
- name: Build artifacts
22+
env:
23+
CC: ${{ matrix.compiler }}
24+
run: |
2325
make distclean config ARCH=${{ matrix.architecture }}
26+
- name: IR regression tests
27+
run: |
2428
make check-snapshot || exit 1
29+
- name: Unit tests
30+
run: |
2531
make check || exit 1
2632
2733
host-arm:
2834
runs-on: ubuntu-24.04
2935
steps:
30-
- name: checkout code
36+
- name: Checkout code
3137
uses: actions/checkout@v4
32-
- name: build artifact
38+
- name: Build artifacts
3339
# The GitHub Action for non-x86 CPU
3440
# https://github.com/uraimo/run-on-arch-action
3541
uses: uraimo/run-on-arch-action@v3
@@ -48,7 +54,7 @@ jobs:
4854
runs-on: ubuntu-24.04
4955
steps:
5056
- uses: actions/checkout@v4
51-
- name: coding convention
57+
- name: Coding convention
5258
run: |
5359
sudo apt-get install -q -y clang-format-18
5460
.ci/check-newline.sh

0 commit comments

Comments
 (0)