forked from GaloisInc/tower
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from distrap/srk/ci
Update CI
- Loading branch information
Showing
3 changed files
with
47 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,51 @@ | ||
# Code generated by dhall-to-yaml. DO NOT EDIT. | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: "GHC ${{ matrix.ghc }}, Cabal ${{ matrix.cabal }}, OS ${{ matrix.os }}" | ||
"runs-on": "${{ matrix.os }}" | ||
steps: | ||
- uses: "actions/checkout@v3" | ||
- id: setup-haskell-cabal | ||
uses: "haskell/actions/setup@v2" | ||
with: | ||
cabal-version: "${{ matrix.cabal }}" | ||
enable-stack: false | ||
ghc-version: "${{ matrix.ghc }}" | ||
- name: Update Hackage repository | ||
run: cabal update | ||
- name: cabal.project.local.ci | ||
run: | | ||
if [ -e cabal.project.local.ci ]; then | ||
cp cabal.project.local.ci cabal.project.local | ||
fi | ||
- name: freeze | ||
run: cabal freeze | ||
- uses: "actions/cache@v3" | ||
with: | ||
key: "${{ runner.os }}-${{ matrix.ghc }}-cabal-${{ hashFiles('cabal.project.freeze') }}" | ||
path: | | ||
${{ steps.setup-haskell-cabal.outputs.cabal-store }} | ||
dist-newstyle | ||
- name: Install dependencies | ||
run: cabal build all --enable-tests --enable-benchmarks --only-dependencies | ||
- name: build all | ||
run: cabal build all --enable-tests --enable-benchmarks | ||
- name: test all | ||
run: cabal test all --enable-tests | ||
- name: haddock all | ||
run: cabal haddock all | ||
- uses: "actions/checkout@v4" | ||
with: | ||
submodules: recursive | ||
- id: "setup-haskell-cabal" | ||
uses: "haskell-actions/setup@v2" | ||
with: | ||
"cabal-version": "${{ matrix.cabal }}" | ||
"ghc-version": "${{ matrix.ghc }}" | ||
- name: Update Hackage repository | ||
run: cabal update | ||
- name: cabal.project.local.ci | ||
run: | | ||
if [ -e cabal.project.local.ci ]; then | ||
cp cabal.project.local.ci cabal.project.local | ||
fi | ||
- name: freeze | ||
run: "cabal freeze --enable-tests --enable-benchmarks" | ||
- uses: "actions/cache@v3" | ||
with: | ||
key: "${{ matrix.os }}-${{ matrix.ghc }}-${{ matrix.cabal}}-${{ hashFiles('cabal.project.freeze') }}" | ||
path: | | ||
${{ steps.setup-haskell-cabal.outputs.cabal-store }} | ||
dist-newstyle | ||
- name: Install dependencies | ||
run: "cabal build all --enable-tests --enable-benchmarks --only-dependencies" | ||
- name: build all | ||
run: "cabal build all --enable-tests --enable-benchmarks" | ||
- name: test all | ||
run: "cabal test all --enable-tests" | ||
- name: haddock all | ||
run: cabal haddock all | ||
strategy: | ||
matrix: | ||
cabal: | ||
- '3.6' | ||
- '3.10' | ||
ghc: | ||
- '8.10.7' | ||
- '9.0.2' | ||
- '9.2.4' | ||
- '9.6.3' | ||
os: | ||
- "ubuntu-latest" | ||
name: Haskell CI | ||
on: | ||
- push | ||
- pull_request | ||
'on': | ||
pull_request: {} | ||
push: {} | ||
schedule: | ||
- cron: "4 20 10 * *" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
let haskellCi = | ||
https://raw.githubusercontent.com/sorki/github-actions-dhall/pending/haskell-ci.dhall | ||
https://raw.githubusercontent.com/sorki/github-actions-dhall/main/haskell-ci.dhall | ||
|
||
in haskellCi.generalCi | ||
haskellCi.matrixSteps | ||
( Some | ||
{ ghc = | ||
[ haskellCi.GHC.GHC8107 | ||
, haskellCi.GHC.GHC902 | ||
, haskellCi.GHC.GHC924 | ||
] | ||
, cabal = [ haskellCi.Cabal.Cabal36 ] | ||
} | ||
) | ||
: haskellCi.CI.Type | ||
in haskellCi.defaultCi : haskellCi.CI.Type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters