Carp/.github/workflows/windows.yml
2021-09-15 07:32:37 +02:00

52 lines
1.3 KiB
YAML

name: Windows CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-2016
steps:
- name: Check out
uses: actions/checkout@v2
- name: Install Scoop
run: |
iwr -useb get.scoop.sh | iex
echo "~\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "C:\ProgramData\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install Stack
run: scoop install stack
- uses: actions/cache@v1
name: Cache stack dependencies
with:
path: C:\\Users\\runneradmin\\AppData\\Local\\Programs\\stack
key: ${{ runner.os }}-stack-deps-${{ github.sha }}
restore-keys: ${{ runner.os }}-stack-deps
- uses: actions/cache@v1
name: Cache stack build
with:
path: C:\\Users\\runneradmin\\AppData\\Roaming\\stack\
key: ${{ runner.os }}-stack-build-${{ github.sha }}
restore-keys: ${{ runner.os }}-stack-build
- name: Install Clang
run: scoop install llvm --global
- name: Build
run: stack build
- name: Run Compiler Tests
run: stack test
- name: Run Carp Tests
shell: bash
run: ./scripts/run_carp_tests.sh --no_sdl