Skip to content

Commit

Permalink
Add Compression Libraries To Cachix
Browse files Browse the repository at this point in the history
  • Loading branch information
s0kil committed May 4, 2022
1 parent 6af262f commit ddc190c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ jobs:
echo "\$file_contents = file_get_contents('./default.nix');" >> replace.php
echo '$new_content = preg_replace("/\".{40}\"/", "\"$argv[1]\"", $file_contents);' >> replace.php
echo '$new_content_with_ref = preg_replace("/refs\/tags\/v\d+.\d+.\d+/", "${{ github.ref }}", $new_content);' >> replace.php
echo '$new_content_with_ref = str_replace("p.ihp", "p.ihp wreq mmark mmark-ext strip-ansi-escape stripe-signature stripe-concepts http-conduit units units-defs haskell-to-elm aeson-casing ihp-zip ihp-sentry minio-hs", $new_content_with_ref);' >> replace.php
echo '$new_content_with_ref = str_replace("p.ihp", "p.ihp wreq mmark mmark-ext strip-ansi-escape stripe-signature stripe-concepts http-conduit units units-defs haskell-to-elm aeson-casing ihp-zip ihp-sentry minio-hs hs-brotli wai-middleware-brotli", $new_content_with_ref);' >> replace.php
echo "file_put_contents('./default.nix', \$new_content_with_ref);" >> replace.php
echo "?>" >> replace.php
php replace.php $GITHUB_SHA
cat default.nix
mv Makefile Makefile.old
echo 'GHC_OPTIONS+= -rtsopts=all\n.SHELLFLAGS := -eu -o pipefail -c\n\n'|cat - Makefile.old > Makefile
nix-shell --run "new-application Web && make build/bin/RunUnoptimizedProdServer"

0 comments on commit ddc190c

Please sign in to comment.