chore: update to 1.0.0 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
# - windows-latest | |
# - macOS-latest | |
nim-version: | |
- stable | |
- 1.6.14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache choosenim | |
id: cache-choosenim | |
uses: actions/cache@v4 | |
with: | |
path: ~/.choosenim | |
key: ${{ runner.os }}-choosenim-${{ matrix.nim-version }} | |
- name: Cache nimble | |
id: cache-nimble | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nimble | |
key: ${{ runner.os }}-nimble-${{ matrix.nim-version }}-${{ hashFiles('nasher.nimble') }} | |
restore-keys: | | |
${{ runner.os }}-nimble-${{ matrix.nim-version }} | |
- name: Set up Nim | |
uses: jiro4989/setup-nim-action@v1 | |
with: | |
nim-version: ${{ matrix.nim-version }} | |
- name: Install dependencies | |
run: nimble install -y --depsOnly | |
- name: Run Nimble tests | |
run: nimble test -y | |
- name: Build package | |
run: nimble build |