11 name: GHC ${{ matrix.name }}
13 # packcheck environment variables
15 BUILD: ${{ matrix.build }}
16 GHCVER: ${{ matrix.ghc_version }}
17 DISABLE_DOCS: ${{ matrix.disable_docs }}
18 DISABLE_TEST: ${{ matrix.disable_test }}
19 DISABLE_DIST_CHECKS: ${{ matrix.disable_dist_checks }}
20 SDIST_OPTIONS: ${{ matrix.sdist_options }}
21 DISABLE_SDIST_BUILD: ${{ matrix.disable_sdist_build }}
24 CABAL_REINIT_CONFIG: y
25 CABAL_BUILD_OPTIONS: ${{ matrix.cabal_build_options }} --flag limit-build-mem
26 CABAL_BUILD_TARGETS: ${{ matrix.cabal_build_targets }}
27 CABAL_PROJECT: ${{ matrix.cabal_project }}
32 RESOLVER: ${{ matrix.resolver }}
33 STACK_YAML: ${{ matrix.stack_yaml }}
34 STACK_BUILD_OPTIONS: ${{ matrix.stack_build_options }}
36 # packcheck location and revision
37 PACKCHECK_LOCAL_PATH: "./packcheck.sh"
38 PACKCHECK_GITHUB_URL: "https://raw.githubusercontent.com/composewell/packcheck"
39 PACKCHECK_GITHUB_COMMIT: "35efa99b2082d13722b8a0183ac6455df98e91b9"
41 # Pull token from "secrets" setting of the github repo
42 COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
43 COVERAGE: ${{ matrix.coverage }}
45 runs-on: ${{ matrix.runner }}
51 - 8.10.4+stack+nightly-2021-06-10
53 - 8.10.4+linux+coverage+cabal
55 - 8.8.4+inspection+fusion-plugin+Werror
60 cabal_version: ["3.4"]
65 cabal_build_options: "--allow-newer=hsc2hs"
66 disable_sdist_build: "y"
68 - name: 8.10.4+stack+nightly-2021-06-10
70 resolver: nightly-2021-06-10
71 stack_yaml: stack.yaml
72 sdist_options: "--ignore-check"
73 stack_build_options: "--flag streamly-benchmarks:-opt"
78 disable_sdist_build: "y"
80 - name: 8.10.4+linux+coverage+cabal
84 - name: 8.8.4+inspection+fusion-plugin+Werror
87 cabal_project: cabal.project.ci
88 cabal_build_options: "--flag fusion-plugin --flag inspection"
93 cabal_project: cabal.project
94 cabal_build_options: "--flag -opt"
99 cabal_project: cabal.project
100 cabal_build_options: "--flag streamk --flag -opt"
101 runner: ubuntu-latest
102 - name: 8.6.5+fusion-plugin
105 cabal_project: cabal.project
106 cabal_build_options: "--flag fusion-plugin"
107 # haddock generation does not work with 8.6.5+fusion-plugin
109 runner: ubuntu-latest
113 cabal_project: cabal.project
114 cabal_build_options: "--flag debug --flag -opt"
115 runner: ubuntu-latest
119 cabal_build_options: "--flag doctests"
120 cabal_build_targets: doctests
121 disable_sdist_build: "y"
122 disable_dist_checks: "y"
123 runner: ubuntu-latest
126 - uses: actions/checkout@v2
128 - uses: haskell/actions/setup@v1
130 ghc-version: ${{ matrix.ghc_version }}
131 cabal-version: ${{ matrix.cabal_version }}
133 - uses: actions/cache@v1
137 # Bump the key version to clear the cache
138 key: ${{ runner.os }}-${{ matrix.ghc_version }}-cabal-v1
140 - name: Download packcheck
142 # Get packcheck if needed
144 PACKCHECK_URL=${PACKCHECK_GITHUB_URL}/${PACKCHECK_GITHUB_COMMIT}/packcheck.sh
145 if test ! -e "$PACKCHECK_LOCAL_PATH"; then $CURL -sL -o "$PACKCHECK_LOCAL_PATH" $PACKCHECK_URL; fi;
146 chmod +x $PACKCHECK_LOCAL_PATH
150 if test -z "$COVERAGE"
152 export TOOLS_DIR=/opt
153 # /usr/local/opt/curl/bin for macOS
154 export PATH=$HOME/.local/bin:$HOME/.ghcup/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/opt/curl/bin
155 bash -c "$PACKCHECK_LOCAL_PATH $BUILD"
157 # Run tests with coverage
159 cabal user-config update -a "jobs: 1"
160 # Build hpc-coveralls if needed
161 sudo apt-get install -y libcurl4-gnutls-dev
162 export PATH=$HOME/.cabal/bin:$PATH
163 which hpc-coveralls 2>/dev/null || cabal install --project-file cabal.project.hpc-coveralls hpc-coveralls
164 # Run tests and upload results to coveralls.io
165 bin/test.sh --coverage --raw
166 hpc-coveralls --repo-token="$COVERALLS_TOKEN" --coverage-mode=StrictlyFullLines
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list