-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Could be its own job, but convenient to run during main linux CI.
- Loading branch information
Showing
3 changed files
with
60 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: ci-linux | ||
on: | ||
push: | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# install deps. | ||
- name: install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libsystemd-dev | ||
- name: Install system dependencies | ||
uses: input-output-hk/actions/base@latest | ||
|
||
- uses: haskell-actions/setup@v2 | ||
id: cabal-setup | ||
with: | ||
ghc-version: '9.6.6' | ||
cabal-version: '3.10.3.0' | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache .cabal | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.cabal-setup.outputs.cabal-store }} | ||
key: cabal-${{ hashFiles('cabal.project') }} | ||
|
||
- name: build & test | ||
run: | | ||
cabal update | ||
cabal build -j all --enable-tests | ||
cabal test all | ||
- name: check compiled scripts are consistent | ||
# git diff --quiet implies --exit-code | ||
run: | | ||
cabal run export-smart-tokens | ||
git diff --quiet |
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
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