Update dist-macos-latest.yml #4
Workflow file for this run
This file contains hidden or 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
| name: dist-macos-latest | ||
| 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 | ||