Skip to content

Commit 69b741f

Browse files
committed
fix(ci): crtbegin hack for -fPIC
1 parent 4a3d8bf commit 69b741f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,17 @@ jobs:
4141
- name: Test
4242
run: yarn run test
4343

44-
- name: Build
45-
run: cabal install exe:strictly --install-method=copy --overwrite-policy=always --installdir=dist --ghc-options="-optl-static -fPIC"
44+
- if: matrix.os == 'macos-latest'
45+
- name: Build
46+
run: cabal install exe:strictly --install-method=copy --overwrite-policy=always --installdir=dist --ghc-options="-optl-static"
47+
48+
49+
- if: matrix.os == 'ubuntu-latest'
50+
- name: crtbegin hack
51+
run: /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginT.o
52+
53+
- name: Build
54+
run: cabal install exe:strictly --install-method=copy --overwrite-policy=always --installdir=dist --ghc-options="-optl-static -fPIC"
4655

4756
- uses: actions/upload-artifact@v2
4857
with:

0 commit comments

Comments
 (0)