summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2022-02-22 21:18:31 -0500
committercyfraeviolae <cyfraeviolae>2022-02-22 21:18:31 -0500
commit12b80873e6378569257568206d7e43cf49d0ed4a (patch)
treed61763622768e80291c9296658992c77464592af
parentf544de9d2aabae3800ae5f9ceea48563f3eb926e (diff)
build
-rw-r--r--antiquitysort.cabal8
-rwxr-xr-xbuild3
-rwxr-xr-xdeploy6
-rw-r--r--init.conf3
-rw-r--r--lib/libgmp.abin0 -> 1311446 bytes
-rw-r--r--package.yaml6
6 files changed, 18 insertions, 8 deletions
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
--- /dev/null
+++ b/lib/libgmp.a
Binary files 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