ci: install Nim without PowerShell
99da7d1 parent: b507312 modified
.github/workflows/release.yml +8 -4 | @@ -48,10 +48,14 @@ jobs: | ||
| 48 | 48 | ref: ${{ steps.release.outputs.tag }} |
| 49 | 49 | |
| 50 | 50 | - name: Install Nim |
| 51 | - uses: jiro4989/setup-nim-action@v2 | |
| 52 | - with: | |
| 53 | - nim-version: "2.2.12" | |
| 54 | - repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| 51 | + run: | | |
| 52 | + curl --fail --show-error --silent \ | |
| 53 | + https://nim-lang.org/choosenim/init.sh \ | |
| 54 | + -o /tmp/choosenim-init.sh | |
| 55 | + CHOOSENIM_CHOOSE_VERSION=2.2.12 sh /tmp/choosenim-init.sh -y | |
| 56 | + echo "$HOME/.nimble/bin" >> "$GITHUB_PATH" | |
| 57 | + export PATH="$HOME/.nimble/bin:$PATH" | |
| 58 | + nim --version | |
| 55 | 59 | |
| 56 | 60 | - name: Run test suite |
| 57 | 61 | run: ./run-tests.sh |
| @@ -48,10 +48,14 @@ jobs: | |||
| 48 | ref: ${{ steps.release.outputs.tag }} | 48 | ref: ${{ steps.release.outputs.tag }} |
| 49 | 49 | ||
| 50 | - name: Install Nim | 50 | - name: Install Nim |
| 51 | - uses: jiro4989/setup-nim-action@v2 | 51 | + run: | |
| 52 | - with: | 52 | + curl --fail --show-error --silent \ |
| 53 | - nim-version: "2.2.12" | 53 | + https://nim-lang.org/choosenim/init.sh \ |
| 54 | - repo-token: ${{ secrets.GITHUB_TOKEN }} | 54 | + -o /tmp/choosenim-init.sh |
| 55 | + CHOOSENIM_CHOOSE_VERSION=2.2.12 sh /tmp/choosenim-init.sh -y | ||
| 56 | + echo "$HOME/.nimble/bin" >> "$GITHUB_PATH" | ||
| 57 | + export PATH="$HOME/.nimble/bin:$PATH" | ||
| 58 | + nim --version | ||
| 55 | 59 | ||
| 56 | - name: Run test suite | 60 | - name: Run test suite |
| 57 | run: ./run-tests.sh | 61 | run: ./run-tests.sh |