-
Notifications
You must be signed in to change notification settings - Fork 173
54 lines (43 loc) · 1.5 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Windows CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-2022
steps:
- name: Check out
uses: actions/checkout@v2
- name: Install Scoop
run: |
iwr -useb get.scoop.sh -outfile 'install-scoop.ps1'
./install-scoop.ps1 -RunAsAdmin
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
- name: Install LLVM
run: |
scoop install llvm
echo "C:\Users\runneradmin\scoop\apps\llvm\current\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- 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: 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