From a43b52f8f824718761900a66f3e7f63d6a0b6954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Wed, 11 Nov 2020 12:17:26 +0100 Subject: [PATCH] add commit hash syntax to readme --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 ```