Skip to content
Snippets Groups Projects
Verified Commit 675bd150 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

refactor: automation

parent 38b1b2b5
No related branches found
No related tags found
No related merge requests found
Pipeline #1900 passed
......@@ -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 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 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@v1
- 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@v3
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
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