forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1017 Bytes
/
bootstrap.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
name: Bootstrap
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
on:
push:
branches:
- master
pull_request:
release:
types:
- created
jobs:
bootstrap:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
name: Bootstrap ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: bootstrap.py
run: |
ghcup config set cache true
ghcup install ghc 8.10.7
# We use linux dependencies also on macos
python3 bootstrap/bootstrap.py -w $(ghcup whereis ghc 8.10.7) -d bootstrap/linux-8.10.7.json
- name: Smoke test
run: |
_build/bin/cabal --version
- uses: actions/upload-artifact@v2
with:
name: cabal-${{ matrix.os }}-bootstrapped
path: _build/artifacts/*