+ Pipeline for building simple package for linux

This commit is contained in:
shockrah 2021-10-16 19:37:32 -07:00
parent 7046d835b8
commit 90bd7658e6
2 changed files with 19 additions and 2 deletions

14
.gitlab-ci.yml Normal file
View File

@ -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/

View File

@ -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.
enforce some level of consistency among contributor code.
## Roadmap
_Check the /roadmap.md_