Skip to content
Snippets Groups Projects
Verified Commit 1e59c98c authored by Louis's avatar Louis :fire:
Browse files

Support windows build

parent e1c74a5b
No related branches found
No related tags found
No related merge requests found
Pipeline #326 failed
image: "r.lcr.gr/microhacks/bevy-builder" image: "r.lcr.gr/microhacks/bevy-builder"
test-linux:
stage: test
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 test --release
build-linux: build-linux:
stage: build stage: build
before_script:
- export CARGO_HOME="${CI_PROJECT_DIR}/.cargo"
- export PATH="${CI_PROJECT_DIR}/.cargo/bin:$PATH"
cache: cache:
key: key: build-cache-linux
files:
- Cargo.lock
paths: paths:
- target - .cargo/registry/cache
- .cargo/registry/index
- .cargo/git/db
- .cargo/bin/
- target/
script: script:
- cargo build --release - cargo build --release
- strip target/release/crunch - strip target/release/crunch
...@@ -17,4 +39,28 @@ build-linux: ...@@ -17,4 +39,28 @@ build-linux:
- target/release/crunch - target/release/crunch
expire_in: 1 day expire_in: 1 day
only: only:
- trunk - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
\ No newline at end of file - when: manual
build-windows:
stage: build
before_script:
- export CARGO_HOME="${CI_PROJECT_DIR}/.cargo"
- export PATH="${CI_PROJECT_DIR}/.cargo/bin:$PATH"
cache:
key: build-cache-windows
paths:
- .cargo/registry/cache
- .cargo/registry/index
- .cargo/git/db
- .cargo/bin/
- target/
script:
- cargo build --release --target x86_64-pc-windows-gnu
artifacts:
expire_in: 1 day
paths:
- target/x86_64-pc-windows-gnu/release/crunch.exe
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- when: manual
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