Skip to content

Commit

Permalink
ci: try using find instead of cabal install
Browse files Browse the repository at this point in the history
  • Loading branch information
stevana committed Oct 22, 2024
1 parent 3f0eb6b commit ea8d9c1
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,18 +190,10 @@ jobs:
- name: Copy binaries
run: |
docker run \
-v "${PWD}":/mnt/:ro \
-v "${HOME}/.cabal/packages":/root/.cache/cabal/packages \
-v "${HOME}/.cabal/store":/root/.local/state/cabal/store \
-v "${PWD}/dist-newstyle":/mnt/dist-newstyle \
ghcr.io/spex-lang/static-build:9.6.6 \
install exe:spex exe:spex-demo-petstore \
--enable-executable-static \
--install-method=copy \
--overwrite-policy=always \
--installdir=dist-newstyle/bin \
--project-dir=/mnt
mkdir -p dist-newstyle/bin
cp "$(find dist-newstyle -name spex -type f -executable)" \
"$(find dist-newstyle -name spex-demo-petstore -type f -executable)" \
dist-newstyle/bin
- name: Create new git tag, if merge to main and .cabal version is bumped
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
Expand Down

0 comments on commit ea8d9c1

Please sign in to comment.