Skip to content

CI

CI #435

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
# Run weekly to keep cache alive.
schedule:
- cron: "0 0 * * 0"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
with:
ghc-version: '9.6.5'
- 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 ffmpeg
- 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