diff --git a/README.md b/README.md index 46e3eeb..675daa8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # setup-zig -Use the zig compiler in your Github Action +Use the zig compiler in your Github Actions workflows [Usage](#usage) - [License: Apache-2.0](#license) @@ -41,7 +41,14 @@ To use the nightly builds, set: version: master ``` -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: +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@v1 + 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 ```