Skip to content

Commit

Permalink
Use existing cabal.project in appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Jul 13, 2022
1 parent f23134c commit c351218
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,12 @@ before_build:
- rmdir /Q /S dist-newstyle

build_script:
- echo packages:. > cabal.project
- cabal configure --allow-newer --ghc-options="-Werror"
- cabal %CABOPTS% build -j all --ghc-options="-Werror"
# Build from sdist if required.
- ps: >-
If ($env:PKG_TEST -Match "yes") {
cabal sdist
echo "packages: dist-newstyle/sdist/*.tar.gz" | Out-File -Encoding ASCII cabal.project
((Get-Content -path cabal.project -Raw) -replace "packages: .", "packages: dist-newstyle/sdist/*.tar.gz") | Set-Content -Path cabal.project
cat cabal.project
cabal configure --allow-newer --ghc-options="-Werror"
cabal $env:CABOPTS build -j pkg:Win32 --ghc-options="-Werror"
}
2 changes: 2 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages: .
https://hackage.haskell.org/package/filepath-1.4.99.5/candidate/filepath-1.4.99.5.tar.gz

0 comments on commit c351218

Please sign in to comment.