git.iko.soy/typeable/haskell-stack-trace-plugin
on master help sign in
Add GitHub action
commit686adf609ee934cdbf6895441d77c5aa54259e03 authorwaddlaw <ingronze@gmail.com> dateSat 18 Jan 2020, 13:05 (7 years ago) parentd948d8b
1 file changed+56
.github/workflows/cabal.yml+56
.github/workflows/cabal.ymlnew file+56
@@ -0,0 +1,56 @@
1+name: cabal
2+
3+on:
4+ push:
5+ branches:
6+ - master
7+ tags-ignore:
8+ - '*'
9+ pull_request:
10+ branches:
11+ - '*'
12+ schedule:
13+ - cron: "00 15 * * *"
14+
15+jobs:
16+ build:
17+ runs-on: ubuntu-18.04
18+ strategy:
19+ matrix:
20+ ghc: ["8.6.5"]
21+ cabal: ["3.0"]
22+
23+ steps:
24+ - uses: actions/checkout@v2
25+ - uses: actions/setup-haskell@v1
26+ with:
27+ ghc-version: ${{ matrix.ghc }}
28+ cabal-version: ${{ matrix.cabal }}
29+
30+ - name: Display ghc & cabal version
31+ run: |
32+ ghc -V
33+ cabal -V
34+
35+ - name: Cache ~/.cabal/store
36+ uses: actions/cache@v1.1.0
37+ with:
38+ path: ~/.cabal/store
39+ key: ${{ matrix.ghc }}-v0-cabal-store-${{ hashFiles('*.cabal') }}
40+
41+ - name: Cache dist-newstyle
42+ uses: actions/cache@v1.1.0
43+ with:
44+ path: dist-newstyle
45+ key: ${{ matrix.ghc }}-v0-cabal-dist-${{ hashFiles('*.cabal') }}
46+
47+ - name: Install dependencies
48+ run: |
49+ cabal v2-update
50+ cabal v2-configure --disable-optimization --enable-tests --write-ghc-environment-files=always -j2
51+ cabal v2-build --only-dependencies
52+
53+ - name: Build & Test
54+ run: |
55+ cabal v2-build --flag dev
56+ cabal v2-test --flag dev