-
Notifications
You must be signed in to change notification settings - Fork 24
ci: Update caching mechanism and refactor the actions #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7dc2572
.github/workflows/build: Update to use setup-rust-toolchain and cache…
Mossaka d1336c6
.github: reorganize the github action files
Mossaka 2054e74
.github/workflows/action-test: Added the missing 'jobs' keyword
Mossaka 827da6c
.github/workflows/action-test: Update to use uppercase for step names
Mossaka 825b662
fix(ci): use cache-key input to setup-rust-toolchain
Mossaka febdfb1
fix(ci): add the missing dollar sign
Mossaka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,25 @@ | ||
| 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 | ||
| - name: Install nightly rustfmt | ||
| run: | ||
| rustup toolchain install nightly --component rustfmt | ||
| - name: Setup build env | ||
| run: | | ||
| make setup | ||
| - name: Run fmt | ||
| run: | | ||
| make fmt |
This file contains hidden or 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 hidden or 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 hidden or 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,54 @@ | ||
| name: Run Check | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| test: | ||
| 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: 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this ran on the PR. Is that expected? From the comment it sounds like it shouldn't on forks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh looks like your branch is on the upstream repo here...