* cache log
* log
* log
* use resolved ver for cache
* build
* log cache
* log
* use version as key
* deps
* loggggggg
* method name
* improve log
* ci: tweak versions
* include version for commit deps
* trailing
* mistake
* ci: auto-build the dist files
* Rebuild
* ci: only rebuild on release branches
* ci: support any version branch
Co-authored-by: Automated <github@asdf.kooi.me>
The version of this action provided in examples was out of date compared
to the version of the most recent release.
This difference means that features like `version: master` will not
work.
* Fix extracted folder name
* ci: also test with zig master
* fix lint
* fail on error
* debug
* other debug 😂
* console.log
* lol apply the change
* yadda
* wtf
* fuck
* ????
* xauuaoethosnuhtnohqsn
* siiiiiigh
* just use stderr lol whatever
* ditch debugging
* use test
* Fix `cache: false`, see [#55](https://github.com/goto-bus-stop/setup-zig/issues/55).
Thanks to [@linusg](https://github.com/linusg) for the report!
## 2.1.0
* The action now caches compilers in your repository's Actions cache by default. This significantly
speeds up installs on average. [#53](https://github.com/goto-bus-stop/setup-zig/pull/53)
2.0.2 also had caching-related changes but they didn't actually do much, based on a misunderstanding
of what the `tool-cache` is for.
## 2.0.2
* Fix tool-cache usage, this should speed up the action if zig was already downloaded before. [#45](https://github.com/goto-bus-stop/setup-zig/pull/45)
## 2.0.1
* Update docs to v2
## 2.0.0
* Change `version` option default to `master`. See [#24](https://github.com/goto-bus-stop/setup-zig/issues/24)
## 1.3.0
* Support pinning to a specific commit of the zig compiler. ([@codehz](https://github.com/codehz) in [#14](https://github.com/goto-bus-stop/setup-zig/pull/14))
```yaml
uses: goto-bus-stop/setup-zig@v1
with:
version: 0.6.0+4b48fccad
```
* Add tests for the version -> URL resolution code.
## 1.2.5
* Update dependencies to fix #11.
## 1.2.4
* Update dependencies simple-get and ncc.
## 1.2.3
* Configure Actions to build releases automatically.
Use the zig compiler in your Github Actions workflows
[Usage](#usage) - [License: Apache-2.0](#license)
@@ -16,29 +16,50 @@ jobs:
os:[ubuntu-latest, macos-latest, windows-latest]
runs-on:${{matrix.os}}
steps:
- uses:actions/checkout@v1
- uses:goto-bus-stop/setup-zig@v1.0.0
- uses:actions/checkout@v2
- uses:goto-bus-stop/setup-zig@v2
- run:zig build test
lint:
runs-on:ubuntu-latest
steps:
- uses:actions/checkout@v1
- uses:goto-bus-stop/setup-zig@v1.0.0
- run:zig fmt --check src/*.zig
- uses:actions/checkout@v2
- uses:goto-bus-stop/setup-zig@v2
- run:zig fmt --check .
```
Optionally set a Zig version:
```yaml
- uses:goto-bus-stop/setup-zig@v1.0.0
- uses:goto-bus-stop/setup-zig@v2
with:
version:0.4.0# The default is 0.5.0
version:0.7.0
```
If you are running Zig on Windows machines, you need to make sure that your .zig files use \n line endings and not \r\n. The `actions/checkout` action auto-converts line endings to \r\n, so add a `.gitattributes` file:
The default is to use the nightly `master` builds.
Or [pin to a specific commit](https://github.com/goto-bus-stop/setup-zig/issues/13) using `version+commithash` syntax:
```yaml
- uses:goto-bus-stop/setup-zig@v2
with:
version:0.6.0+4b48fccad
```
If you are running Zig on Windows machines, you need to make sure that your .zig files use \n line endings and not \r\n. The `actions/checkout` action auto-converts line endings to `\r\n` on Windows runners, so add a `.gitattributes` file:
```
*.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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.