Skip to content

Merge pull request #101 from ethercrow/dependabot/github_actions/acti… #386

Merge pull request #101 from ethercrow/dependabot/github_actions/acti…

Merge pull request #101 from ethercrow/dependabot/github_actions/acti… #386

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request: {}
jobs:
linux-cabal:
runs-on: ubuntu-latest
strategy:
matrix:
ghc: ['8.6', '8.8', '8.10', '9.0', '9.2']
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
name: Cache ~/.cabal/packages
with:
path: ~/.cabal/packages
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-packages
- uses: actions/[email protected]
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-store
- uses: actions/[email protected]
name: Cache dist-newstyle
with:
path: dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-dist-newstyle
- uses: haskell/actions/[email protected]
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.6'
- name: Update cabal package database
run: cabal update
- name: Build
run: |
cabal build all
- name: Test
run: |
cd opentelemetry
cabal install tasty-discover
env PATH="$HOME/.cabal/bin:$PATH" cabal test
linux-stack:
runs-on: ubuntu-latest
strategy:
matrix:
stack-yaml: ['stack-8.10.yaml']
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.stack-yaml }}-stack-home
- name: Install stack
run: which stack || curl -sSL https://get.haskellstack.org/ | sh
- name: Install GHC
run: |
stack setup --stack-yaml ${{ matrix.stack-yaml }}
- name: Build
run: |
stack build --no-interleaved-output --fast --stack-yaml ${{ matrix.stack-yaml }}
- name: Test
run: |
stack test --fast --stack-yaml ${{ matrix.stack-yaml }}
- name: Bench
run: |
stack bench --stack-yaml ${{ matrix.stack-yaml }} opentelemetry-extra --benchmark-arguments '+RTS -l'
macos-stack:
runs-on: macOS-latest
strategy:
matrix:
stack-yaml: ['stack-8.10.yaml']
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.stack-yaml }}-home-stack
- name: Install stack
run: which stack || curl -sSL https://get.haskellstack.org/ | sh
- name: Install GHC
run: |
stack setup --stack-yaml ${{ matrix.stack-yaml }}
- name: Build
run: |
stack build --no-interleaved-output --fast --stack-yaml ${{ matrix.stack-yaml }}
- name: Test
run: |
stack test --fast --stack-yaml ${{ matrix.stack-yaml }}
- name: Bench
run: |
stack bench --stack-yaml ${{ matrix.stack-yaml }} opentelemetry-extra --benchmark-arguments '+RTS -l'
win-cabal:
runs-on: windows-latest
strategy:
matrix:
ghc: ['8.10', '9.0', '9.2']
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
name: Cache ~/.cabal/packages
with:
path: ~/.cabal/packages
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-packages
- uses: actions/[email protected]
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-store
- uses: actions/[email protected]
name: Cache dist-newstyle
with:
path: dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-dist-newstyle
- uses: haskell/actions/[email protected]
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.6'
- name: Update cabal package database
run: cabal update
- name: Build
run: |
cabal build all -v