-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 928 Bytes
/
build.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
on:
push:
branches: master
pull_request:
branches: master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Haskell versions
run: |
which cabal
cabal --version
ghc --version
- name: Set installdir
run: |
cabal user-config init
cabal user-config update --augment="installdir: /home/runner/.local/bin"
cabal user-config update --augment="install-method: copy"
cabal user-config update --augment="overwrite-policy: always"
- run: echo "$PATH"
- name: Print config file
run: |
CFG=$(cabal --help | tail -1)
echo ${CFG}
cat ${CFG}
echo "CFG=${CFG}" >> "${GITHUB_ENV}"
- run: cabal update
- run: cabal install --ignore-project alex-3.4.0.1
- run: |
alex --version
which alex
- run: cabal build