Skip to content

More fixes for expiring map crossing generations #127

More fixes for expiring map crossing generations

More fixes for expiring map crossing generations #127

Workflow file for this run

name: Haskell CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Cache Key
id: cache_key
run: echo ::set-output name=key::$(md5sum stack.yaml | awk '{print $1}')
- name: Cache Dependencies
id: cache
uses: actions/cache@v1
with:
path: ~/.stack
key: ${{ matrix.os }}-${{ steps.cache_key.outputs.key }}
- name: Build Snapshot
if: steps.cache.outputs.cache-hit != 'true'
run: |
stack --no-terminal test --bench --only-snapshot
- name: Build & Test
run: |
stack --no-terminal test --bench --no-run-benchmarks --haddock --no-haddock-deps
stack install
cp $HOME/.local/bin/mqtt-watch .
PKG_NAME=$(cat *.cabal | grep "name:" | sed "s/name:\s*\(.*\)/\1/")
mkdir -p dist/ && mv $(stack path --local-install-root)/doc/$PKG_NAME-*/* dist/
- name: Store Artifact
uses: actions/upload-artifact@v1
with:
name: mqtt-watch-${{ matrix.os }}
path: mqtt-watch
- name: Publish Docs
if: matrix.os == 'ubuntu-latest' && github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist
enable_jekyll: false