refactor: give IOError an escape hatch #660
Workflow file for this run
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
on: [push] | |
name: build | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install haskell | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh | |
~/.ghcup/bin/ghcup install 8.10.7 | |
~/.ghcup/bin/ghcup install cabal 3.4.0.0 | |
~/.ghcup/bin/ghcup install stack 2.7.3 | |
~/.ghcup/bin/ghcup set 8.10.7 | |
~/.ghcup/bin/ghcup set cabal 3.4.0.0 | |
~/.ghcup/bin/ghcup set stack 2.7.3 | |
- name: Configure stack | |
run: stack config set system-ghc --global true | |
- run: DEBIAN_FRONTEND=noninteractive sudo apt-get update -y | |
- run: sudo apt-get install -y lcov llvm-12 nasm | |
- uses: actions/cache@v2.1.3 | |
name: Cache ~/.stack | |
with: | |
path: ~/.stack | |
key: ${{ runner.os }}-8.10.7-stack | |
- run: stack install alex happy | |
- name: build runtime libs | |
run: TARGET="LINUX_X64" ./scripts/build-runtime-libs | |
- name: build runtime | |
run: AR="llvm-ar-12" TARGET="LINUX_X64" CPLUS_INCLUDE_PATH="/usr/include/c++/9:/usr/include/x86_64-linux-gnu/c++/9:/usr/include/" ./scripts/build-runtime | |
- run: ./scripts/test coverage | |
- run: ./scripts/coverage | |
- run: | | |
cd .github/workflows | |
node update-cov.mjs | |
- uses: codecov/codecov-action@v2 | |
with: | |
files: ./coverage/codecov.json | |
# flags: unittests # optional | |
# name: codecov-umbrella # optional | |
# fail_ci_if_error: true # optional (default = false) | |
verbose: true | |
# - name: Coveralls | |
# uses: coverallsapp/github-action@master | |
# with: | |
# path-to-lcov: coverage/lcov.info | |
# github-token: ${{ secrets.GITHUB_TOKEN }} |