Skip to content

Commit

Permalink
Use github cache (#53)
Browse files Browse the repository at this point in the history
* Cache the zig compiler locally

* logging

* npm update

* verboser

* os.arch

* debug

* log signal

* address actions/toolkit#687

* correct path

* add a cache: false option

* share size

* zigpath

* path.join skull
  • Loading branch information
goto-bus-stop committed Jun 25, 2023
1 parent 72c3cfb commit a331fa2
Show file tree
Hide file tree
Showing 5 changed files with 58,122 additions and 2,113 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ If you are running Zig on Windows machines, you need to make sure that your .zig
*.zig text eol=lf
```

This action caches the downloaded compilers in your repository's Actions cache by default,
to reduce the load on the Zig Foundation's servers. Cached compilers are only about 60MB
each per version/OS/architecture.

If this is really bad for you for some reason you can disable the caching.

```yaml
- uses: goto-bus-stop/setup-zig@v1
with:
cache: false
```

## License

[Apache-2.0](LICENSE.md)
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
description: 'Version of the zig compiler to use (must be 0.3.0 or up)'
required: true
default: '0.5.0'
cache:
description: 'Cache downloaded compilers for faster action runs. Strongly recommended.'
required: false
default: 'true'
runs:
using: 'node12'
main: 'dist/index.js'
Loading

0 comments on commit a331fa2

Please sign in to comment.