From 2723b2ee75679a0ef6e4343742a3ebf530b8006f Mon Sep 17 00:00:00 2001 From: thomasjm Date: Mon, 22 Jul 2024 22:16:17 -0700 Subject: [PATCH] ci: try fixing sed command on macOS --- .github/workflows/sandwich.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sandwich.yml b/.github/workflows/sandwich.yml index ded0bf25..d7bcd20d 100644 --- a/.github/workflows/sandwich.yml +++ b/.github/workflows/sandwich.yml @@ -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