Skip to content

feat: add use-nightlies parameter #504 (#505) #1224

feat: add use-nightlies parameter #504 (#505)

feat: add use-nightlies parameter #504 (#505) #1224

Workflow file for this run

name: build
on:
push:
paths-ignore:
- 'LICENSE'
- '*.md'
branches:
- master
pull_request:
paths-ignore:
- 'LICENSE'
- '*.md'
jobs:
shfmt:
name: runner / shfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-shfmt@v1
with:
shfmt_flags: -i 2 -sr -ci -d
shellcheck:
name: runner / shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
test-on-cross-platform:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-13
- macOS-latest
version:
- 2.0.x
- devel
exclude:
- os: windows-latest
version: devel
steps:
- uses: actions/checkout@v4
- uses: ./
with:
nim-version: ${{ matrix.version }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Print Nim version
run: nim -v
- name: Print Nimble version
run: nimble -v
- name: Run build test
run: nimble install -Y nimjson
- name: Run command
run: nimjson -h
test-devel:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
nim-version: devel
use-nightlies: true
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Print Nim version
run: nim -v
- name: Print Nimble version
run: nimble -v
- name: Run build test
run: nimble install -Y nimjson
- name: Run command
run: nimjson -h
test-multi-versions:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
version:
- 1.4.x
- 1.6.0
- 1.6.x
- 1.x
- 2.0.x
- 2.x
- stable
steps:
- uses: actions/checkout@v4
- uses: ./
with:
nim-version: ${{ matrix.version }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Print Nim version
run: nim -v
- name: Print Nimble version
run: nimble -v
- name: Run build test
run: nimble install -Y nimjson
- name: Run command
run: nimjson -h
test-parent-directory:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
nim-version: stable
repo-token: ${{ secrets.GITHUB_TOKEN }}
parent-nim-install-directory: ${{ runner.temp }}
- name: Print Nim version
run: nim -v
- name: Print Nimble version
run: nimble -v
- name: Run build test
run: nimble install -Y nimjson
- name: Run command
run: nimjson -h