From 12b80873e6378569257568206d7e43cf49d0ed4a Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Tue, 22 Feb 2022 21:18:31 -0500 Subject: build --- antiquitysort.cabal | 8 ++++++-- build | 3 +++ deploy | 6 ------ init.conf | 3 +++ lib/libgmp.a | Bin 0 -> 1311446 bytes package.yaml | 6 ++++++ 6 files changed, 18 insertions(+), 8 deletions(-) create mode 100755 build delete mode 100755 deploy create mode 100644 init.conf create mode 100644 lib/libgmp.a diff --git a/antiquitysort.cabal b/antiquitysort.cabal index 7a1bfb9..d55d6fa 100644 --- a/antiquitysort.cabal +++ b/antiquitysort.cabal @@ -1,6 +1,6 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.34.3. +-- This file has been generated from package.yaml by hpack version 0.34.4. -- -- see: https://github.com/sol/hpack @@ -55,7 +55,11 @@ executable antiquitysort-exe Paths_antiquitysort hs-source-dirs: app - ghc-options: -threaded -rtsopts -with-rtsopts=-N + ghc-options: -threaded -rtsopts -with-rtsopts=-N -static -Wall -O2 + cc-options: -static + extra-lib-dirs: + ./lib/ + ld-options: -static -pthread build-depends: aeson , antiquitysort diff --git a/build b/build new file mode 100755 index 0000000..7263f21 --- /dev/null +++ b/build @@ -0,0 +1,3 @@ +set -euo pipefail +stack install +cp ~/.local/bin/antiquitysort-exe dist/ diff --git a/deploy b/deploy deleted file mode 100755 index 5faf546..0000000 --- a/deploy +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -stack install -rsync ~/.local/bin/antiquitysort-exe vps:/srv/antiquitysort/staging -rsync antiquitysort.service vps:/srv/antiquitysort/staging -rsync -az static vps:/srv/antiquitysort/staging diff --git a/init.conf b/init.conf new file mode 100644 index 0000000..6e1f351 --- /dev/null +++ b/init.conf @@ -0,0 +1,3 @@ +server { + server_name antiquitysort.cyfraeviolae.org; +} diff --git a/lib/libgmp.a b/lib/libgmp.a new file mode 100644 index 0000000..5886d4a Binary files /dev/null and b/lib/libgmp.a differ diff --git a/package.yaml b/package.yaml index 74db047..c53f636 100644 --- a/package.yaml +++ b/package.yaml @@ -55,6 +55,12 @@ executables: - -threaded - -rtsopts - -with-rtsopts=-N + - -static + - -Wall + - -O2 + cc-options: -static + ld-options: -static -pthread + extra-lib-dirs: ./lib/ dependencies: - base - antiquitysort -- cgit v1.2.3