Testing speed without cache

This commit is contained in:
Joe Bellus 2022-02-10 00:59:41 -05:00
parent 075cfccbe8
commit d2c7acf6eb
1 changed files with 13 additions and 11 deletions

View File

@ -25,6 +25,8 @@ build-ui:
- apt-get -y install libssl-dev
- npm install
- npm run build
# rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
artifacts:
paths:
- dist/
@ -32,26 +34,26 @@ build-ui:
build-bin:
dependencies:
- build-ui
variables:
RUSTC_WRAPPER: /usr/local/bin/sccache
SCCACHE_BUCKET: $SCCACHE_BUCKET
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
# variables:
# RUSTC_WRAPPER: /usr/local/bin/sccache
# SCCACHE_BUCKET: $SCCACHE_BUCKET
# AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
image: "rust:slim-buster"
stage: build
tags:
- linux
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script:
- apt-get update
- apt-get -y install libssl-dev pkg-config wget
- wget https://github.com/mozilla/sccache/releases/download/v0.2.15/sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz
- tar xzf sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz
- mv sccache-v0.2.15-x86_64-unknown-linux-musl/sccache /usr/local/bin/sccache
# - wget https://github.com/mozilla/sccache/releases/download/v0.2.15/sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz
# - tar xzf sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz
# - mv sccache-v0.2.15-x86_64-unknown-linux-musl/sccache /usr/local/bin/sccache
- chmod +x /usr/local/bin/sccache
- cargo build --releas
- cargo build --release
- cd target/release
- tar -czf ../../vade-linux-x64.tar.gz vade
- cd ../../