ci: use setup-racket and a build matrix
This commit is contained in:
parent
377f35b70c
commit
bf5cd14c7b
|
@ -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
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in New Issue