test more builds

This commit is contained in:
Mirek Kratochvil 2025-07-29 08:06:41 +02:00
parent 8f9677e40f
commit 4499144a4d
2 changed files with 18 additions and 9 deletions

View file

@ -8,17 +8,26 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest name: Build ${{ github.ref_name }} OS:${{ matrix.os }} GHC:${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-15]
ghc:
- "9.6"
- "9.12"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
submodules: recursive
- uses: haskell-actions/setup@v2 - uses: haskell-actions/setup@v2
with: with:
ghc-version: '9.4' ghc-version: ${{ matrix.ghc }}
- run: | - name: build
cabal build run: |
xz -9 < `cabal exec which werge` > werge-${{ github.ref_name }}-`uname -m`.xz mkdir dist
cabal install exe:werge --install-method=copy --overwrite-policy=always --installdir=dist
strip dist/werge
mv dist/werge dist/werge-${{ github.ref_name }}_${{ matrix.os }}_ghc-${{ matrix.ghc }}
xz dist/werge-*
- uses: softprops/action-gh-release@v2 - uses: softprops/action-gh-release@v2
with: with:
files: werge-*.xz files: dist/werge-*.xz

View file

@ -1,6 +1,6 @@
cabal-version: 3.0 cabal-version: 3.0
name: werge name: werge
version: 0.1.0.0 version: 0.2.0.0
synopsis: mergetool for mangled-up bite-size changes synopsis: mergetool for mangled-up bite-size changes
license: GPL-3.0-or-later license: GPL-3.0-or-later
license-file: LICENSE license-file: LICENSE