-
Notifications
You must be signed in to change notification settings - Fork 178
55 lines (44 loc) · 1.53 KB
/
linux.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
55
name: Linux CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-haskell@v1
- name: Install SDL dependency (for SDL tests)
run: |
sudo apt-get update && sudo apt-get install libsdl2-dev \
libsdl2-gfx-dev \
libsdl2-image-dev \
libsdl2-mixer-dev \
libsdl2-ttf-dev
- uses: actions/cache@v1
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-stack-${{ github.sha }}
restore-keys: ${{ runner.os }}-stack-
- name: Build
run: stack build
- name: Run Compiler Tests
run: stack test
- name: Run Carp Tests
run: ./scripts/run_carp_tests.sh
- name: List Contents of Docs Directory
run: ls ./docs/core
- name: Copy Docs to carp-docs Repository
uses: cpina/github-action-push-to-another-repository@master
if: github.ref == 'refs/heads/master'
env:
API_TOKEN_GITHUB: ${{ secrets.PERSONAL_TOKEN }}
with:
source-directory: './docs'
destination-github-username: 'carp-lang'
destination-repository-name: 'carp-docs'
user-email: 'bot@carp-lang.github.io'
commit-message: "Docs generated from: ${{ github.event.head_commit.message}}"