Skip to content

Commit

Permalink
Don't build binaries with Nix
Browse files Browse the repository at this point in the history
See the comment. This is very frustrating.
samhh committed Dec 8, 2022

Verified

This commit was signed with the committer’s verified signature.
jalling97 John Alling
1 parent 1e25f51 commit 9b1d84c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -18,16 +18,20 @@ jobs:
runs-on: ${{ matrix.os.runner }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
- run: nix develop -c cabal update
- run: nix develop -c cabal freeze
# Using Nix causes dynamic linking issues on macOS. It's easier to
# workaround on Linux with patchelf at least. (Yes, building statically
# would be substantially better.)
- uses: haskell/actions/setup@v2
with:
ghc-version: 9.2.4
- run: cabal freeze
- uses: actions/cache@v3
with:
path: ~/.cabal/store
key: cabal-${{ runner.os }}-${{ hashFiles('cabal.project.freeze') }}
- name: Build
run: |
nix develop -c cabal install --install-method=copy --installdir=dist-newstyle
cabal install --install-method=copy --installdir=dist-newstyle
mv dist-newstyle/intlc dist-newstyle/intlc_${{ matrix.os.name }}
mv dist-newstyle/intlc-internal dist-newstyle/intlc-internal_${{ matrix.os.name }}
- name: Release

0 comments on commit 9b1d84c

Please sign in to comment.