Fix build release client
This commit is contained in:
parent
0c62a41f70
commit
c3653ebe2a
@ -15,6 +15,7 @@ environment:
|
|||||||
CI: true
|
CI: true
|
||||||
secrets:
|
secrets:
|
||||||
- 7ebab768-e5e4-4c9d-ba57-ec41a72c5665
|
- 7ebab768-e5e4-4c9d-ba57-ec41a72c5665
|
||||||
|
- 46f739e5-4538-45dd-a79f-bf173b7a2ed9
|
||||||
tasks:
|
tasks:
|
||||||
- setup: |
|
- setup: |
|
||||||
rustup toolchain install nightly
|
rustup toolchain install nightly
|
||||||
@ -31,5 +32,7 @@ tasks:
|
|||||||
export TAR_NAME=$(date -u +"%Y%m%d%H%M%s")
|
export TAR_NAME=$(date -u +"%Y%m%d%H%M%s")
|
||||||
tar -cJvf ~/${TAR_NAME}.tar.xz ./build
|
tar -cJvf ~/${TAR_NAME}.tar.xz ./build
|
||||||
cp ~/${TAR_NAME}.tar.xz ~/latest.tar.xz
|
cp ~/${TAR_NAME}.tar.xz ~/latest.tar.xz
|
||||||
|
scp ~/latest.tar.xz rpi.ita-prog.pl:/www/http/static/jirs-client-{TAR_NAME}.tar.xz
|
||||||
|
scp ~/latest.tar.xz rpi.ita-prog.pl:/www/http/static/jirs-client-latest.tar.xz
|
||||||
artifacts:
|
artifacts:
|
||||||
- latest.tar.gz
|
- latest.tar.gz
|
||||||
|
@ -16,6 +16,7 @@ environment:
|
|||||||
JIRS_SERVER_BIND: 0.0.0.0
|
JIRS_SERVER_BIND: 0.0.0.0
|
||||||
secrets:
|
secrets:
|
||||||
- 7ebab768-e5e4-4c9d-ba57-ec41a72c5665
|
- 7ebab768-e5e4-4c9d-ba57-ec41a72c5665
|
||||||
|
- 46f739e5-4538-45dd-a79f-bf173b7a2ed9
|
||||||
tasks:
|
tasks:
|
||||||
- build_config: |
|
- build_config: |
|
||||||
cp ~/jirs/.builds/db.toml ~/jirs/jirs-server/db.toml
|
cp ~/jirs/.builds/db.toml ~/jirs/jirs-server/db.toml
|
||||||
@ -42,5 +43,7 @@ tasks:
|
|||||||
tar -cJvf ~/server.tar.xz ./target/release/jirs_server
|
tar -cJvf ~/server.tar.xz ./target/release/jirs_server
|
||||||
- deploy: |
|
- deploy: |
|
||||||
cp ~/server.tar.xz ~/latest.tar.xz
|
cp ~/server.tar.xz ~/latest.tar.xz
|
||||||
|
scp ~/latest.tar.xz rpi.ita-prog.pl:/www/http/static/jirs-server-{TAR_NAME}.tar.xz
|
||||||
|
scp ~/latest.tar.xz rpi.ita-prog.pl:/www/http/static/jirs-server-latest.tar.xz
|
||||||
artifacts:
|
artifacts:
|
||||||
- jirs_server
|
- jirs_server
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
export PROJECT_ROOT=$(git rev-parse --show-toplevel)
|
||||||
|
export CLIENT_ROOT=${PROJECT_ROOT}/jirs-client
|
||||||
|
export HI_ROOT=${PROJECT_ROOT}/highlight/jirs-highlight
|
||||||
|
export MODE=force
|
||||||
|
export BUILD_TYPE=--release
|
||||||
|
|
||||||
|
cd ${PROJECT_ROOT}
|
||||||
|
cargo build --bin jirs-css
|
||||||
|
|
||||||
. .env
|
. .env
|
||||||
|
|
||||||
rm -Rf build
|
rm -Rf build
|
||||||
@ -11,7 +20,7 @@ wasm-pack build --mode normal --release --out-name jirs --out-dir $CLIENT_ROOT/b
|
|||||||
cd $HI_ROOT
|
cd $HI_ROOT
|
||||||
wasm-pack build --mode normal --release --out-name hi --out-dir $CLIENT_ROOT/build --target web
|
wasm-pack build --mode normal --release --out-name hi --out-dir $CLIENT_ROOT/build --target web
|
||||||
|
|
||||||
cargo run --bin jirs-css -i ./js/styles.css -o ./build/styles.css
|
${PROJECT_ROOT}/target/debug/jirs-css -i ./js/styles.css -o ./build/styles.css
|
||||||
|
|
||||||
cp -r ./static/* ./build
|
cp -r ./static/* ./build
|
||||||
cat ./static/index.js \
|
cat ./static/index.js \
|
||||||
|
Loading…
Reference in New Issue
Block a user