Skip to content

Commit f325588

Browse files
committed
add GH action to build the project
use enable-stack, stack-no-global, stack-setup-ghc
1 parent baddf10 commit f325588

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
name: Haskell GHC
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: haskell-actions/setup@v2
16+
with:
17+
enable-stack: true
18+
stack-no-global: true
19+
stack-setup-ghc: true
20+
- uses: actions/cache@v4
21+
with:
22+
path: |
23+
~/.stack
24+
.stack-work
25+
key: ${{ runner.os }}-${{ hashFiles('**/*.cabal','**/stack.yaml') }}
26+
restore-keys: |
27+
${{ runner.os }}-
28+
- run: stack build

0 commit comments

Comments
 (0)