-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github: reorganize the github action files
1. Renamed workflows to follow a consistent naming convention (`action-*`) 2. Extracted reusable workflows Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
- Loading branch information
Showing
7 changed files
with
86 additions
and
67 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Run Check | ||
|
||
on: | ||
workflow_call: | ||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
check: | ||
name: check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
components: rustfmt, clippy | ||
- run: | ||
rustup toolchain install nightly --component rustfmt | ||
- name: Setup build env | ||
run: | | ||
make setup | ||
- name: fmt | ||
run: | | ||
make fmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Run Check | ||
|
||
on: | ||
workflow_call: | ||
runs-on: ubuntu-latest | ||
env: | ||
ARCH: x86_64 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/download-artifact@v4 | ||
- uses: azure/setup-kubectl@v4 | ||
- uses: fermyon/actions/spin/setup@v1 | ||
with: | ||
version: "v2.7.0" | ||
|
||
- name: Setup build env | ||
run: | | ||
make setup | ||
- name: Extract containerd-shim-spin-linux-${{ env.ARCH }} | ||
run: | | ||
mkdir -p ./bin | ||
for f in containerd-shim-spin-*-linux-${{ env.ARCH }}/containerd-shim-spin-*-linux-${{ env.ARCH }}.tar.gz | ||
do tar -xzf "$f" -C ./bin | ||
done | ||
- name: install k3d | ||
run: make install-k3d | ||
|
||
- name: run integration tests | ||
run: BIN_DIR="./bin" IS_CI=true make integration-tests | ||
|
||
- name: run collect debug logs | ||
if: failure() | ||
run: make tests/collect-debug-logs | ||
|
||
- name: upload debug logs | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: debug-logs | ||
path: debug-logs/ | ||
retention-days: 5 | ||
|
||
- name: Output runner storage on failure | ||
if: failure() | ||
run: df -h | ||
|
||
- name: clean up k3d | ||
if: always() | ||
run: make tests/clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters