Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Crunch
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
Crunch
Commits
1e59c98c
Verified
Commit
1e59c98c
authored
2 years ago
by
Louis
Browse files
Options
Downloads
Patches
Plain Diff
Support windows build
parent
e1c74a5b
No related branches found
No related tags found
No related merge requests found
Pipeline
#326
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+51
-5
51 additions, 5 deletions
.gitlab-ci.yml
with
51 additions
and
5 deletions
.gitlab-ci.yml
+
51
−
5
View file @
1e59c98c
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
:
stage
:
build
before_script
:
-
export CARGO_HOME="${CI_PROJECT_DIR}/.cargo"
-
export PATH="${CI_PROJECT_DIR}/.cargo/bin:$PATH"
cache
:
key
:
files
:
-
Cargo.lock
key
:
build-cache-linux
paths
:
-
target
-
.cargo/registry/cache
-
.cargo/registry/index
-
.cargo/git/db
-
.cargo/bin/
-
target/
script
:
-
cargo build --release
-
strip target/release/crunch
...
...
@@ -17,4 +39,28 @@ build-linux:
-
target/release/crunch
expire_in
:
1 day
only
:
-
trunk
\ No newline at end of file
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment