[ci] Speed up CI by eliminating unnecessary runs (#79)

This commit is contained in:
markspanbroek 2022-04-11 20:01:32 +02:00 committed by GitHub
parent 03fa370624
commit 168468a3fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 9 deletions

View File

@ -1,5 +1,10 @@
name: nim-dagger CI name: nim-dagger CI
on: [push, pull_request] on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs: jobs:
build: build:
@ -7,21 +12,15 @@ jobs:
fail-fast: false fail-fast: false
max-parallel: 20 max-parallel: 20
matrix: matrix:
branch: [v1.2.18, v1.4.8, v1.6.4] branch: [v1.2.18, v1.6.4]
target: target:
# Unit tests # Unit tests
- os: linux - os: linux
cpu: amd64 cpu: amd64
TEST_KIND: unit-tests TEST_KIND: unit-tests
- os: linux
cpu: i386
TEST_KIND: unit-tests
- os: macos - os: macos
cpu: amd64 cpu: amd64
TEST_KIND: unit-tests TEST_KIND: unit-tests
# - os: windows
# cpu: i386
# TEST_KIND: unit-tests
- os: windows - os: windows
cpu: amd64 cpu: amd64
TEST_KIND: unit-tests TEST_KIND: unit-tests
@ -35,7 +34,7 @@ jobs:
- target: - target:
os: windows os: windows
builder: windows-2019 builder: windows-2019
name: '${{ matrix.target.os }}-${{ matrix.target.cpu }}' name: '${{ matrix.target.os }}-${{ matrix.target.cpu }}-${{ matrix.branch }}'
runs-on: ${{ matrix.builder }} runs-on: ${{ matrix.builder }}
steps: steps:
- name: Checkout nim-dagger - name: Checkout nim-dagger