Skip to content

Commit

Permalink
test: download zig
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <[email protected]>
  • Loading branch information
LucaGuerra committed Oct 22, 2024
1 parent 90c1520 commit 11f7b3c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/move-zig.yaml
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

0 comments on commit 11f7b3c

Please sign in to comment.