Skip to content

Commit

Permalink
Add release job
Browse files Browse the repository at this point in the history
  • Loading branch information
tbidne committed Mar 14, 2024
1 parent 831f4be commit 29672a9
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
push:
branches:
- main
- release

pull_request:
branches:
- main
- release

workflow_dispatch:

Expand Down Expand Up @@ -120,3 +122,38 @@ jobs:
- name: HLint
run: nix run .#lint
release:
needs: [cabal, nix, lint]
if: github.ref == 'refs/heads/release'
strategy:
fail-fast: false
matrix:
ghc:
- "9.6.3"
os:
- "macos-latest"
- "ubuntu-latest"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}

- name: Configure
run: cabal configure --enable-tests --ghc-options -Werror

- name: Compile
run: cabal build exe:shrun

- name: Install binary
run: |
cabal install --installdir=. --install-method=copy --program-suffix=-${{ matrix.os }}
ls
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: shrun-${{ matrix.os }}

0 comments on commit 29672a9

Please sign in to comment.