From 90bd7658e6f2b8ec714227fc9ca4475fb0e62fe9 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 16 Oct 2021 19:37:32 -0700 Subject: [PATCH] + Pipeline for building simple package for linux --- .gitlab-ci.yml | 14 ++++++++++++++ readme.md | 7 +++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..41c1721 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +stages: + - build + +# Builds out the intended zip package +package: + script: + - mkdir -p build + - cp api/templates/ api/static/ build -r + - cargo build --release + - cp target/release/api build/server + - cp ./scripts/generate-thumbnail.sh build/ + - cp readme.md build/ + artifacts: + - build/ diff --git a/readme.md b/readme.md index 007ca2c..6e0bfca 100644 --- a/readme.md +++ b/readme.md @@ -20,11 +20,14 @@ There are a few environment variables that can be configured: Currently the project relies on Rust Nightly to build due to a requirement in Rocket however as that framework moves to Rust Stable so to will this project. - ## Building frontend javascript Currently the website's javascript is written in typescript then compiled to Javascript. The output directory is `/api/static/js/` which means `mkdir -p api/static/js` must be ran in order to ensure that output directory is present and compilation succeeds. There are no dependencies and is only written in typescript to -enforce some level of consistency among contributor code. \ No newline at end of file +enforce some level of consistency among contributor code. + +## Roadmap + +_Check the /roadmap.md_ \ No newline at end of file