Merge pull request #417 from ethereum/prepare-0.52.0 #13
Workflow file for this run
This file contains 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: "Release" | |
on: | |
push: | |
tags: | |
- 'release/[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
macosRelease: | |
name: Build MacOS Binary | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: build hevm | |
run: | | |
nix build .#redistributable --out-link hevmMacos | |
cp ./hevmMacos/bin/hevm ./hevm-x86_64-macos | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: hevm-x86_64-macos | |
path: ./hevm-x86_64-macos | |
linuxRelease: | |
name: Create Release | |
needs: macosRelease | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: build hevm | |
run: | | |
nix build .#redistributable --out-link hevmLinux | |
cp ./hevmLinux/bin/hevm ./hevm-x86_64-linux | |
- name: download macos binary | |
uses: actions/download-artifact@v3 | |
with: | |
name: hevm-x86_64-macos | |
- name: create github release & upload binaries | |
uses: softprops/[email protected] | |
with: | |
files: | | |
./hevm-x86_64-linux | |
./hevm-x86_64-macos | |
- name: prepare hackage artifacts | |
run: | | |
nix-shell --command "cabal sdist --builddir=${{ runner.temp }}/packages" | |
nix-shell --command "cabal haddock lib:hevm --builddir=${{ runner.temp }}/docs --haddock-for-hackage --haddock-option=--hyperlinked-source" | |
- name: publish to hackage | |
uses: haskell-actions/hackage-publish@v1 | |
with: | |
hackageToken: ${{ secrets.HACKAGE_AUTH_TOKEN }} | |
packagesPath: ${{ runner.temp }}/packages/sdist | |
docsPath: ${{ runner.temp }}/docs | |
publish: true | |