Skip to content
Snippets Groups Projects
Commit 831b0fec authored by Louis's avatar Louis :fire:
Browse files

Restore cache

parent 5f26e357
No related branches found
No related tags found
No related merge requests found
Pipeline #479 failed with stages
in 1 minute and 16 seconds
......@@ -30,19 +30,18 @@ run-tests:
compile-desktop:
image:
name: r.lcr.gr/microhacks/rust-ci-builder:latest
entrypoint: []
stage: compile
# before_script:
# - export CARGO_HOME="${CI_PROJECT_DIR}/.cargo"
# - export PATH="${CI_PROJECT_DIR}/.cargo/bin:$PATH"
# cache:
# key: build-cache-linux
# paths:
# - .cargo/registry/cache
# - .cargo/registry/index
# - .cargo/git/db
# - .cargo/bin/
# - target/
before_script:
- export CARGO_HOME="${CI_PROJECT_DIR}/.cargo"
- export PATH="${CI_PROJECT_DIR}/.cargo/bin:$PATH"
cache:
key: build-cache-linux
paths:
- .cargo/registry/cache
- .cargo/registry/index
- .cargo/git/db
- .cargo/bin/
- target/
script:
- cargo build --release
dependencies:
......@@ -51,19 +50,18 @@ compile-desktop:
compile-web:
image:
name: r.lcr.gr/microhacks/rust-ci-builder:latest
entrypoint: []
stage: compile
# before_script:
# - export CARGO_HOME="${CI_PROJECT_DIR}/.cargo"
# - export PATH="${CI_PROJECT_DIR}/.cargo/bin:$PATH"
# cache:
# key: build-cache-web
# paths:
# - .cargo/registry/cache
# - .cargo/registry/index
# - .cargo/git/db
# - .cargo/bin/
# - target/
before_script:
- export CARGO_HOME="${CI_PROJECT_DIR}/.cargo"
- export PATH="${CI_PROJECT_DIR}/.cargo/bin:$PATH"
cache:
key: build-cache-web
paths:
- .cargo/registry/cache
- .cargo/registry/index
- .cargo/git/db
- .cargo/bin/
- target/
script:
- rm -rf forge-script-web/out
- mkdir -p forge-script-web/out
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment