From cff86b61f0702b3f52f8203bd9cbdb4cc1de4bef Mon Sep 17 00:00:00 2001 From: jiro4989 Date: Thu, 7 Jan 2021 23:18:46 +0900 Subject: [PATCH] chore: write minor version and patch version format #38 --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 0da5ba28b..f77b5f6df 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,34 @@ steps: - run: nimble test -Y ``` +### Setup a latest patch version Nim + +Setup a latest patch version Nim when `nim-version` is `1.n.x` . + +```yaml +steps: + - uses: actions/checkout@v2 + - uses: jiro4989/setup-nim-action@v1 + with: + nim-version: '1.2.x' # ex: 1.0.x, 1.2.x, 1.4.x ... + - run: nimble build -Y + - run: nimble test -Y +``` + +### Setup a latest minor version Nim + +Setup a latest minor version Nim when `nim-version` is `1.x` . + +```yaml +steps: + - uses: actions/checkout@v2 + - uses: jiro4989/setup-nim-action@v1 + with: + nim-version: '1.x' + - run: nimble build -Y + - run: nimble test -Y +``` + ### Cache usage ```yaml