Update issue template and workflow #648
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: | |
# Run only on a merge against master | |
pull_request: | |
branches: | |
- master | |
# Request an explicit run | |
workflow_dispatch: | |
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/[email protected] | |
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 }} |