-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Luca Guerra <[email protected]>
- Loading branch information
1 parent
90c1520
commit 11f7b3c
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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,28 @@ | ||
name: Cache and Upload Zig on PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '**' # This runs the action on any branch for a PR | ||
|
||
jobs: | ||
cache-and-upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Step 1: Checkout the repository | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# Step 2: Cache Zig binary from cache (if available) | ||
- name: Cache Zig | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./zig # Path where cache will be restored to | ||
key: zig-Linux-ARM64-0.14.0-dev.1632+d83a3f174 # Cache key to download | ||
|
||
# Step 3: Upload the cached Zig binary as an artifact | ||
- name: Upload Zig Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: zig-Linux-ARM64 # Artifact name | ||
path: ./zig # Path to the folder containing the cached zig binary |