Skip to content

Update dist-macos-latest.yml #4

Update dist-macos-latest.yml

Update dist-macos-latest.yml #4

name: dist-macos-latest

Check failure on line 1 in .github/workflows/dist-macos-latest.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dist-macos-latest.yml

Invalid workflow file

(Line: 20, Col: 9): Unexpected value 'df -h'
permissions:
contents: write
on:
workflow_dispatch:
pull_request:
jobs:
build:
name: ${{ matrix.os }} / GHC ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
steps:
- run: env
- run: brew install ghcup
- run: ghcup install ghc ${{ matrix.ghc }} --set
- run: echo "$HOME/.ghcup/bin" >> "$GITHUB_PATH"
- run: ghc --version
- df -h
- run: which ghc
- run: which cabal
- run: which ghcup
- run: du -hs /usr/local/.ghcup
- run: du -hs /usr/local/.ghcup/*
- run: du -hs /usr/local/.ghcup/ghc/9.10.1/*
- run: pwd
- run: cabal update
- run: cabal install --package-env=. --lib hspec
- run: du -hs ~/.local/state/cabal
- run: echo $HOME
- uses: actions/checkout@v4
- name: publish binaries
run: |
dst=ghc-${{ matrix.ghc }}-$RUNNER_OS-$ImageOS-$RUNNER_ARCH.tar.gz
tar -czpf "$dst" /usr/local/.ghcup /home/runner/.local/state/cabal/store
ls -hl "$dst"
gh release create nightly --prerelease || (git tag nightly -f && git push --tags -f)
gh release upload nightly "$dst" --clobber
# if: github.ref == 'refs/heads/main'
env:
GH_TOKEN: ${{ github.token }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
ghc:
- 9.12.2