mirror of
https://github.com/Kleidukos/get-tested.git
synced 2024-11-20 17:18:54 +03:00
Reshape the cabal project files
This commit is contained in:
parent
61f298fcbd
commit
f6a36a8d01
6
.github/workflows/process-binaries.sh
vendored
6
.github/workflows/process-binaries.sh
vendored
@ -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" ;;
|
||||
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -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
9
cabal.release.project
Normal file
@ -0,0 +1,9 @@
|
||||
import: cabal.project
|
||||
|
||||
optimization: 2
|
||||
|
||||
documentation: False
|
||||
|
||||
executable-stripping: True
|
||||
|
||||
library-stripping: True
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user