Skip to content

doc: minor grammar fix #46

doc: minor grammar fix

doc: minor grammar fix #46

Workflow file for this run

name: Bob the Builder
on:
push:
branches: [master]
jobs:
cabal:
name: ${{ matrix.os }}-x86_64
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
cabal: ["3.6.2.0"]
ghc: ["9.2.7"]
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
id: setup-haskell-cabal
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
enable-stack: false
- name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle
uses: actions/cache@v2
with:
path: |
~/.cabal/packages
~/.cabal/store
${{ github.workspace }}/dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}
- name: Update
run: cabal update
- name: Install dependencies
run: cabal new-build -O2 --disable-debug-info --enable-executable-stripping --enable-library-stripping --disable-debug-info --disable-library-for-ghci all --ghc-options "-funfolding-use-threshold=16 -fexcess-precision -optc-O3 -optc-ffast-math -fforce-recomp" --only-dependencies
working-directory: ${{ github.workspace }}
- name: Build
run: cabal new-build -O2 --disable-debug-info --enable-executable-stripping --enable-library-stripping --disable-debug-info --disable-library-for-ghci all --ghc-options "-funfolding-use-threshold=16 -fexcess-precision -optc-O3 -optc-ffast-math -fforce-recomp"
working-directory: ${{ github.workspace }}
- name: Copy executable
run: cp dist-newstyle/build/x86_64-*/ghc-*/diamond-$(cat diamond.cabal | grep '^version' | awk '{print $2}')/x/diamond/opt/build/diamond/diamond$(if [ "$RUNNER_OS" == "Windows" ]; then echo ".exe"; else echo ""; fi) diamond
shell: bash
working-directory: ${{ github.workspace }}
- name: Strip executable
run: strip diamond
shell: bash
working-directory: ${{ github.workspace }}
- uses: actions/upload-artifact@v2
with:
name: diamond-${{ runner.os }}
path: ${{ github.workspace }}/diamond