Rmeoved sccache

This commit is contained in:
Joe Bellus 2022-02-10 09:27:53 -05:00
parent 6eddc792e5
commit 52504b8468
1 changed files with 5 additions and 14 deletions

View File

@ -25,8 +25,8 @@ build-ui:
- apt-get -y install libssl-dev
- npm install
- npm run build
# rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
artifacts:
paths:
- dist/
@ -34,25 +34,16 @@ 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
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
# - chmod +x /usr/local/bin/sccache
- apt-get -y install libssl-dev pkg-config
- cargo build --release
- cd target/release
- tar -czf ../../vade-linux-x64.tar.gz vade