ci: use setup-racket and a build matrix

This commit is contained in:
Bogdan Popa 2020-10-30 20:12:58 +02:00
parent 377f35b70c
commit bf5cd14c7b
No known key found for this signature in database
GPG Key ID: 4227ABAD6F9D03D5
2 changed files with 27 additions and 15 deletions

View File

@ -1,11 +1,31 @@
on: push on: [push, pull_request]
name: main name: CI/CD
jobs: jobs:
build: build:
runs-on: ubuntu-latest name: "Build on ${{ matrix.os }}, ${{ matrix.version }} (${{ matrix.variant }})"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
variant: ["CS", "regular"]
version: ["7.7", "7.8", "current"]
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
steps: steps:
- uses: actions/checkout@master - name: Checkout
- name: Build and Test uses: actions/checkout@master
uses: docker://jackfirth/racket:7.3-full
- name: Install Racket
uses: Bogdanp/setup-racket@v0.10
with: with:
entrypoint: /github/workspace/ci/build.sh architecture: x64
distribution: full
variant: ${{ matrix.variant }}
version: ${{ matrix.version }}
- name: Install pkg and deps
run: raco pkg install --batch --auto sass/
- name: Run tests
run: raco test -j 4 -l sass

View File

@ -1,8 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
pushd /github/workspace
raco pkg install --auto --batch sass/
raco test -j 4 sass/
popd