Skip to content

Commit

Permalink
Merge pull request #876 from Y-Nak/resolve-conflict
Browse files Browse the repository at this point in the history
Resolve conflict
  • Loading branch information
Y-Nak authored Apr 21, 2023
2 parents 95b2c99 + 269754e commit cadea40
Show file tree
Hide file tree
Showing 704 changed files with 2,917 additions and 1,848 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
uses: Swatinem/rust-cache@v2
- name: install cargo-tarpaulin
run: |
cargo install cargo-tarpaulin
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/expensive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true

- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
uses: Swatinem/rust-cache@v2

- name: Build
run: cargo test --workspace --all-features --no-run --locked -- --ignored
Expand Down
55 changes: 19 additions & 36 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,45 +17,35 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
uses: Swatinem/rust-cache@v2
- name: Validate release notes entry
run: ./newsfragments/validate_files.py
- name: Lint with rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check
- name: Lint with clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets --all-features -- -D warnings
run: cargo clippy --workspace --all-targets --all-features -- -D clippy::all

book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
uses: Swatinem/rust-cache@v2
- name: install mdbook & mdbook-linkcheck
run: |
cargo install mdbook
Expand All @@ -75,7 +65,7 @@ jobs:
- os: ubuntu-latest
- os: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Mac System dependencies
if: startsWith(matrix.os,'macOS')
run: |
Expand All @@ -86,38 +76,33 @@ jobs:
sudo apt-get update
sudo apt-get install -y libboost-all-dev
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo test --workspace --all-features --no-run --locked
- name: Run tests
run: cargo test --workspace --all-features --verbose

wasm-test:
runs-on: ubuntu-latest
container: davesque/rust-wasm
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
- name: Build WASM tests
run: wasm-pack test --node crates/fe -- --workspace --no-run
uses: Swatinem/rust-cache@v2
- name: Run WASM tests
# wasm-pack needs a Cargo.toml with a 'package' field.
# (see https://github.com/rustwasm/wasm-pack/issues/642)
# This will still run all tests in the workspace.
run: wasm-pack test --node crates/fe -- --workspace
run: wasm-pack test --node crates/fe --workspace

release:
# Only run this when we push a tag
Expand All @@ -134,7 +119,7 @@ jobs:
BIN_FILE: fe_mac

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Linux dependencies
if: startsWith(matrix.os,'ubuntu')
run: |
Expand All @@ -145,11 +130,9 @@ jobs:
run: |
brew install boost
- name: Install rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- name: Build
run: cargo build --all-features --release && strip target/release/fe && mv target/release/fe target/release/${{ matrix.BIN_FILE }}
- name: Release
Expand Down
Loading

0 comments on commit cadea40

Please sign in to comment.