Skip to content

Commit

Permalink
ci: Separate build and test in github workflows.
Browse files Browse the repository at this point in the history
Currently the "Build and test" step of the c-i workflow does both
build a binary and test the binary.  Make 2 sections 'Build' and 'Test'.
This way you can know which of the two sections failed, and also
see how long each portion took.

Signed-off-by: Scott Moser <smoser@brickies.net>
  • Loading branch information
smoser committed Mar 6, 2023
1 parent e577430 commit 991e293
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ jobs:
(cd /tmp && git clone https://github.com/AgentD/squashfs-tools-ng && cd squashfs-tools-ng && ./autogen.sh && ./configure --prefix=/usr && make -j2 && sudo make -j2 install && sudo ldconfig -v)
(cd /tmp && git clone https://github.com/anuvu/squashfs && cd squashfs && make && sudo cp squashtool/squashtool /usr/bin)
- if: github.event_name != 'release' || github.event.action != 'published'
name: Build and test
name: Build
run: |
make stacker
env:
REGISTRY_URL: localhost:5000
- if: github.event_name != 'release' || github.event.action != 'published'
name: Test
run: |
make check PRIVILEGE_LEVEL=${{ matrix.privilege-level }}
env:
Expand Down

0 comments on commit 991e293

Please sign in to comment.