-
Notifications
You must be signed in to change notification settings - Fork 14
63 lines (61 loc) · 1.42 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# This file is auto-generated
#
# To regenerate it run
#
# make github-actions
#
name: Bootstrap
on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types:
- created
jobs:
boostrap-linux:
name: Bootstrap on Linux
runs-on: ubuntu-18.04
steps:
- name: Set PATH
run: |
echo "::add-path::/opt/ghc/8.6.5/bin"
- uses: actions/checkout@v2
- name: bootstrap.sh
env:
EXTRA_CONFIGURE_OPTS: ""
run: |
cd cabal-install
sh ./bootstrap.sh --no-doc
- name: Smoke test
run: |
$HOME/.cabal/bin/cabal --version
boostrap-macos:
name: Bootstrap on macOS
runs-on: macos-latest
steps:
- name: Install GHC
run: |
cd $(mktemp -d)
curl -sLO "https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-apple-darwin.tar.xz"
tar -xJf ghc-*.tar.xz
cd ghc-*
./configure --prefix=/opt/ghc/8.6.5
sudo make install
- name: Set PATH
run: |
echo "::add-path::/opt/ghc/8.6.5/bin"
echo "::add-path::$HOME/.cabal/bin"
- uses: actions/checkout@v2
- name: bootstrap.sh
env:
EXTRA_CONFIGURE_OPTS: ""
run: |
cd cabal-install
sh ./bootstrap.sh --no-doc
- name: Smoke test
run: |
$HOME/.cabal/bin/cabal --version