Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Forge Script
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
Forge Script
Commits
89ac1177
Commit
89ac1177
authored
2 years ago
by
Louis
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
ee28e61c
No related branches found
No related tags found
No related merge requests found
Pipeline
#475
failed with stages
in 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+81
-0
81 additions, 0 deletions
.gitlab-ci.yml
with
81 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
81
−
0
View file @
89ac1177
# This file is a template, and might need editing before it works on your project.
# This is a sample GitLab CI/CD configuration file that should run without any modifications.
# It demonstrates a basic 3 stage CI/CD pipeline. Instead of real tests or scripts,
# it uses echo commands to simulate the pipeline execution.
#
# A pipeline is composed of independent jobs that run scripts, grouped into stages.
# Stages run in sequential order, but jobs within stages run in parallel.
#
# For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages
#
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
#
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
stages
:
-
test
-
compile
-
package
run-tests
:
image
:
ghcr.io/rust-lang/rust:nightly-slim
stage
:
test
script
:
-
cargo test
compile-desktop
:
image
:
r.lcr.gr/microhacks/rust-ci-builder:latest
stage
:
compile
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
dependencies
:
-
"
run-tests"
compile-web
:
image
:
r.lcr.gr/microhacks/rust-ci-builder:latest
stage
:
compile
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
:
-
rm -rf forge-script-web/out
-
mkdir -p forge-script-web/out
-
wasm-pack build forge-script-web --release --target web --out-dir out/pkg-web
-
wasm-pack build forge-script-web --release --target nodejs --out-dir out/pkg-npm
-
wasm-pack build forge-script-web --release --target bundler --out-dir out/pkg-bundle
-
cd "${CI_PROJECT_DIR}/forge-script-web/out/pkg-web" && zip -r pkg-web.zip ./* && mv pkg-web.zip "${CI_PROJECT_DIR/"
-
cd "${CI_PROJECT_DIR}/forge-script-web/out/pkg-npm" && zip -r pkg-npm.zip ./* && mv pkg-npm.zip "${CI_PROJECT_DIR/"
-
cd "${CI_PROJECT_DIR}/forge-script-web/out/pkg-bundle" && zip -r pkg-bundle.zip ./* && mv pkg-bundle.zip "${CI_PROJECT_DIR/"
dependencies
:
-
"
run-tests"
artifacts
:
untracked
:
false
when
:
on_success
expire_in
:
7 days
paths
:
-
pkg-web.zip
-
pkg-npm.zip
-
pkg-bundle.zip
\ No newline at end of file
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