Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
boytacean
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
João Magalhães
boytacean
Commits
675bd150
Verified
Commit
675bd150
authored
2 years ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
refactor: automation
parent
38b1b2b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#1900
passed
2 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/main.yml
+32
-30
32 additions, 30 deletions
.github/workflows/main.yml
with
32 additions
and
30 deletions
.github/workflows/main.yml
+
32
−
30
View file @
675bd150
...
...
@@ -21,21 +21,22 @@ jobs:
runs-on
:
ubuntu-latest
container
:
rust:${{ matrix.rust-version }}
steps
:
-
uses
:
actions/checkout@v1
-
run
:
|
-
name
:
Checkout code from repository
uses
:
actions/checkout@v3
-
name
:
Install Rust components
run
:
|
rustup component add rustfmt
rustup component add clippy
name
:
Install Rust components
-
run
:
rustc --version
name
:
Print Rust information
-
run
:
cargo fmt --all -- --check
name
:
Verify Rust code format
-
run
:
cargo clippy -- -D warnings -A unknown-lints
name
:
Verify Rust code linting
-
run
:
cargo build
name
:
Build development version
-
run
:
cargo build --release
name
:
Build release version
-
name
:
Print Rust information
run
:
rustc --version
-
name
:
Verify Rust code format
run
:
cargo fmt --all -- --check
-
name
:
Verify Rust code linting
run
:
cargo clippy -- -D warnings -A unknown-lints
-
name
:
Build development version
run
:
cargo build
-
name
:
Build release version
run
:
cargo build --release
build-wasm
:
name
:
Build WASM
timeout-minutes
:
30
...
...
@@ -54,24 +55,25 @@ jobs:
runs-on
:
ubuntu-latest
container
:
rust:${{ matrix.rust-version }}
steps
:
-
uses
:
actions/checkout@v1
-
run
:
|
-
name
:
Checkout code from repository
uses
:
actions/checkout@v3
-
name
:
Install Rust components
run
:
|
rustup component add rustfmt
rustup component add clippy
name
:
Install Rust components
-
run
:
rustc --version
name
:
Print
Rust
in
format
ion
-
run
:
cargo fmt --all -- --check
name
:
Verify Rust code
format
-
run
:
cargo clippy -- -D warnings -A unknown-lints
name
:
Verify Rust code linting
-
run
:
cargo install wasm-pack
name
:
Install wasm-pack
-
run
:
wasm-pack build --release --target=web --out-dir=frontends/web/lib -- --features wasm
name
:
Build WASM Web binary
-
uses
:
actions/setup-node@v
1
-
name
:
Print Rust information
run
:
rustc --version
-
name
:
Verify
Rust
code
format
run
:
cargo fmt --all -- --check
-
name
:
Verify Rust code
linting
run
:
cargo clippy -- -D warnings -A unknown-lints
-
name
:
Install wasm-pack
run
:
cargo install wasm-pack
-
name
:
Build WASM Web binary
run
:
wasm-pack build --release --target=web --out-dir=frontends/web/lib -- --features wasm
-
name
:
Install Node.js ${{ matrix.node-version }}
uses
:
actions/setup-node@v
3
with
:
node-version
:
${{ matrix.node-version }}
name
:
Install Node.js
-
run
:
cd frontends/web && npm install && npm run build && npm run lint
name
:
Build and lint Web code
-
name
:
Build and lint Web code
run
:
cd frontends/web && npm install && npm run build && npm run lint
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