Skip to content

Commit

Permalink
Reshape the cabal project files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Jul 20, 2024
1 parent 61f298f commit f6a36a8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/process-binaries.sh
Original file line number Diff line number Diff line change
@@ -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" ;;
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
9 changes: 9 additions & 0 deletions cabal.release.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import: cabal.project

optimization: 2

documentation: False

executable-stripping: True

library-stripping: True
8 changes: 3 additions & 5 deletions cabal.static.project
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f6a36a8

Please sign in to comment.