Skip to content

Commit 8cd812b

Browse files
committed
fix(ci): add ld-options
1 parent b57e3d1 commit 8cd812b

File tree

2 files changed

+92567
-4
lines changed

2 files changed

+92567
-4
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,16 @@ jobs:
4545
if: matrix.os == 'macos-latest'
4646
run: cabal install exe:strictly --install-method=copy --overwrite-policy=always --installdir=dist --ghc-options="-optl-static"
4747

48-
4948
- name: build linux
5049
if: matrix.os == 'ubuntu-latest'
51-
run: |
52-
/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginT.o
53-
cabal install exe:strictly --install-method=copy --overwrite-policy=always --installdir=dist --ghc-options="-optl-static -fPIC"
50+
run: cabal install exe:strictly --install-method=copy --overwrite-policy=always --installdir=dist -enable-static --disable-executable-dynamic --ld-options=-static
5451

5552
- uses: actions/upload-artifact@v2
5653
with:
5754
name: ${{matrix.PLATFORM}}
5855
path: ./dist/${{matrix.TARGET}}
5956
if-no-files-found: error
57+
6058
release:
6159
name: release build
6260
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

0 commit comments

Comments
 (0)