Skip to content

Commit

Permalink
ci: try fixing sed command on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Jul 23, 2024
1 parent fc2bad6 commit 2723b2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/sandwich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ jobs:
if: ${{ matrix.ghc == '9.8.1' }}
run: |
# Because the HaskellNet dependency doesn't work yet with GHC 9.8
sed -i 's/demos\/demo-fake-smtp-server/-- demos\/demo-fake-smtp-server/g' cabal.project
if [[ "$RUNNER_OS" == "macOS" ]]; then
sed -i '.bak' 's/demos\/demo-fake-smtp-server/-- demos\/demo-fake-smtp-server/g' cabal.project
else
sed -i 's/demos\/demo-fake-smtp-server/-- demos\/demo-fake-smtp-server/g' cabal.project
fi
- uses: haskell-actions/setup@v2
id: setup-haskell-cabal
Expand Down

0 comments on commit 2723b2e

Please sign in to comment.