-
Notifications
You must be signed in to change notification settings - Fork 13
57 lines (47 loc) · 1.16 KB
/
main.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
56
57
name: CI
on:
push:
branches: [ master ]
# Run weekly to keep cache alive.
schedule:
- cron: "0 0 * * 0"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v1
with:
ghc-version: '8.10'
- uses: actions/cache@v3
name: Caching
with:
path: |
~/.cabal/store
dist-newstyle
key: ${{ runner.os }}-${{ hashFiles('cabal.project') }}
restore-keys: |
${{ runner.os }}
- name: Install Debian dependencies
run: |
sudo apt-get update
sudo apt-get install -y gnuplot imagemagick
- uses: diku-dk/[email protected]
with:
version: 'nightly'
- name: Build Haskell
run: |
cabal update
cabal build
- name: Build site
run: |
cabal exec futhark-website clean
cabal exec futhark-website build
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSHKEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Deploy site
run: |
cabal exec futhark-website deploy