Skip to content

Commit fbc1fbd

Browse files
committed
CI: GitHub: add On-Release-Cabal-Linux
1 parent d6a3951 commit fbc1fbd

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Release testing, Hackage, Cabal, Linux"
2+
3+
on:
4+
release:
5+
# created: a draft is saved, or a release or pre-release is published without previously being saved as a draft
6+
types: [ created ]
7+
8+
jobs:
9+
10+
build10:
11+
name: "GHC"
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
packageRoots: [ ./hnix-store-core, ./hnix-store-remote ]
16+
# Since CI by default tests boundary GHCs, test middle versions of GHCs
17+
ghc: [ "8.8", "8.6"]
18+
defaults:
19+
run:
20+
working-directory: "${{ matrix.packageRoots }}"
21+
steps:
22+
- uses: actions/checkout@v2
23+
with:
24+
submodules: recursive
25+
- name: Cache of ~/.cabal/packages, ~/.cabal/store and dist-newstyle
26+
uses: actions/cache@v2
27+
with:
28+
path: |
29+
~/.cabal/packages
30+
~/.cabal/store
31+
dist-newstyle
32+
key: ${{ runner.os }}-Cabal-${{ matrix.ghc }}
33+
- uses: haskell/actions/setup@v1
34+
with:
35+
ghc-version: ${{ matrix.ghc }}
36+
- name: "Install additional system packages"
37+
run: sudo apt install libsodium-dev
38+
# 2020-08-01: NOTE: Nix instantiate still needed for HNix tests
39+
- name: "Install Nix"
40+
uses: cachix/install-nix-action@v12
41+
- run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic
42+
- run: cabal v2-build
43+
- run: cabal v2-test

0 commit comments

Comments
 (0)