82 lines
1.9 KiB
YAML
Raw Normal View History

2024-06-11 15:28:05 +10:00
name: CI
2024-06-11 15:23:25 +10:00
on:
push:
branches:
- master
pull_request:
2024-06-11 15:28:05 +10:00
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
2022-03-28 18:42:45 -06:00
jobs:
2024-06-11 15:28:05 +10:00
build:
timeout-minutes: 90
2022-03-28 18:42:45 -06:00
strategy:
2024-06-11 15:28:05 +10:00
fail-fast: false
2022-03-28 18:42:45 -06:00
matrix:
2024-06-11 15:28:05 +10:00
target:
- os: linux
cpu: amd64
- os: linux
cpu: i386
- os: macos
cpu: amd64
- os: windows
cpu: amd64
#- os: windows
#cpu: i386
branch: [version-1-6]
include:
- target:
os: linux
builder: ubuntu-20.04
shell: bash
- target:
os: macos
builder: macos-12
shell: bash
- target:
os: windows
builder: windows-2019
shell: msys2 {0}
defaults:
run:
shell: ${{ matrix.shell }}
name: '${{ matrix.target.os }}-${{ matrix.target.cpu }} (Nim ${{ matrix.branch }})'
runs-on: ${{ matrix.builder }}
continue-on-error: ${{ matrix.branch == 'devel' }}
2022-03-28 18:42:45 -06:00
steps:
2024-06-11 15:28:05 +10:00
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Setup Nim
uses: "./.github/actions/install_nim"
with:
os: ${{ matrix.target.os }}
cpu: ${{ matrix.target.cpu }}
shell: ${{ matrix.shell }}
nim_branch: ${{ matrix.branch }}
- name: Restore deps from cache
id: deps-cache
uses: actions/cache@v3
with:
path: nimbledeps
key: nimbledeps-${{ hashFiles('.pinned') }}
- name: Install deps
if: ${{ steps.deps-cache.outputs.cache-hit != 'true' }}
run: |
nimble --accept install
2024-06-11 15:28:05 +10:00
- name: Run tests
run: |
nim --version
nimble --version
nimble test