mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-04 01:25:04 +03:00
52 lines
1.3 KiB
YAML
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
|