Reshape the cabal project files

This commit is contained in:
Hécate Kleidukos 2024-07-20 23:12:41 +02:00
parent 61f298fcbd
commit f6a36a8d01
4 changed files with 18 additions and 10 deletions

View File

@ -1,11 +1,11 @@
#!/usr/bin/env bash
CONFER_PATH="distribution/confer"
GETTESTED_PATH="distribution/get-tested"
case "$(uname -s)" in
Linux*)
strip $CONFER_PATH
upx -9 $CONFER_PATH
strip $GETTESTED_PATH
upx -9 $GETTESTED_PATH
;;
Darwin*)
echo "upx crashes on macOS Ventura and above" ;;

View File

@ -8,6 +8,7 @@ on:
jobs:
generate-matrix:
if: startsWith(github.ref, 'refs/tags/')
name: 'Generate matrix from cabal'
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
@ -83,7 +84,7 @@ jobs:
path: ${{ env.GETTESTED_EXEC_TAR }}
build-alpine:
name: 9.8.2 on alpine-3.19
name: 9.10.1 on alpine-3.19
runs-on: ubuntu-latest
container: 'alpine:3.19'
needs: generate-matrix
@ -102,7 +103,7 @@ jobs:
- uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: '9.8.2'
ghc-version: '9.10.1'
cabal-version: 'latest'
- name: Configure

9
cabal.release.project Normal file
View File

@ -0,0 +1,9 @@
import: cabal.project
optimization: 2
documentation: False
executable-stripping: True
library-stripping: True

View File

@ -1,6 +1,4 @@
import: ./cabal.project
package get-tested
ghc-options: -static
ld-options: -static -pthread
import: ./cabal.release.project
executable-static: true
split-sections: True