build(deps): Bump thiserror from 1.0.59 to 1.0.60 #706
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Desmos Bindings | |
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml | |
on: | |
pull_request: | |
jobs: | |
test: | |
name: Test Suite | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v2 | |
- name: Verify .rs or toml files π | |
uses: technote-space/[email protected] | |
id: git_diff | |
with: | |
PATTERNS: | | |
**/**.rs | |
**/**.toml | |
**/Cargo.lock | |
FILES: | | |
Cargo.lock | |
- name: Setup Rust β | |
if: env.GIT_DIFF | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.71.1 | |
profile: minimal | |
override: true | |
- name: Prepare rust cache ποΈ | |
if: env.GIT_DIFF | |
uses: Swatinem/rust-cache@v2 | |
- name: Unit tests π§ͺ | |
if: env.GIT_DIFF | |
working-directory: ./packages/bindings | |
run: cargo unit-test --locked | |
env: | |
RUST_BACKTRACE: 1 | |
lints: | |
name: Lints | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v2 | |
- name: Verify .rs files π | |
uses: technote-space/[email protected] | |
id: git_diff | |
with: | |
PATTERNS: | | |
**/**.rs | |
- name: Setup Rust β | |
if: env.GIT_DIFF | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.71.1 | |
override: true | |
components: rustfmt, clippy | |
- name: Prepare rust cache ποΈ | |
if: env.GIT_DIFF | |
uses: Swatinem/rust-cache@v2 | |
- name: Run cargo fmt β | |
if: env.GIT_DIFF | |
run: cargo fmt --all -- --check | |
- name: Run cargo clippy β | |
if: env.GIT_DIFF | |
run: cargo clippy | |
build: | |
name: Test features build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v2 | |
- name: Verify .rs and toml files π | |
uses: technote-space/[email protected] | |
id: git_diff | |
with: | |
PATTERNS: | | |
**/**.rs | |
**/**.toml | |
- name: Setup Rust β | |
if: env.GIT_DIFF | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.71.1 | |
override: true | |
components: rustfmt, clippy | |
- name: Prepare rust cache π | |
if: env.GIT_DIFF | |
uses: Swatinem/rust-cache@v2 | |
- name: Install wasm32-unknown-unknown target β | |
run: rustup target add wasm32-unknown-unknown | |
- name: Build No features π§ͺ | |
if: env.GIT_DIFF | |
working-directory: ./packages/bindings | |
run: cargo build --no-default-features --target wasm32-unknown-unknown | |
- name: Build feature (profiles) π§ͺ | |
if: env.GIT_DIFF | |
working-directory: ./packages/bindings | |
run: cargo build --no-default-features --features profiles --target wasm32-unknown-unknown | |
- name: Build feature (subspaces) π§ͺ | |
if: env.GIT_DIFF | |
working-directory: ./packages/bindings | |
run: cargo build --no-default-features --features subspaces --target wasm32-unknown-unknown | |
- name: Build feature (relationships) π§ͺ | |
if: env.GIT_DIFF | |
working-directory: ./packages/bindings | |
run: cargo build --no-default-features --features relationships --target wasm32-unknown-unknown | |
- name: Build feature (posts) π§ͺ | |
if: env.GIT_DIFF | |
working-directory: ./packages/bindings | |
run: cargo build --no-default-features --features posts --target wasm32-unknown-unknown | |
- name: Build feature (reactions) π§ͺ | |
if: env.GIT_DIFF | |
working-directory: ./packages/bindings | |
run: cargo build --no-default-features --features reactions --target wasm32-unknown-unknown | |
- name: Build feature (reports) π§ͺ | |
if: env.GIT_DIFF | |
working-directory: ./packages/bindings | |
run: cargo build --no-default-features --features reports --target wasm32-unknown-unknown | |
- name: Build all feature π§ͺ | |
if: env.GIT_DIFF | |
working-directory: ./packages/bindings | |
run: | | |
cargo build --all-features --target wasm32-unknown-unknown | |
check: | |
name: Check desmos-bindings build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v2 | |
- name: Verify .rs and toml files π | |
uses: technote-space/[email protected] | |
id: git_diff | |
with: | |
PATTERNS: | | |
**/**.rs | |
**/**.toml | |
- name: Setup Rust β | |
if: env.GIT_DIFF | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.71.1 | |
override: true | |
components: rustfmt, clippy | |
- name: Prepare rust cache π | |
if: env.GIT_DIFF | |
uses: Swatinem/rust-cache@v2 | |
- name: Install wasm2wat β | |
run: | | |
wget https://github.com/WebAssembly/wabt/releases/download/1.0.32/wabt-1.0.32-ubuntu.tar.gz | |
tar -xzf wabt-1.0.32-ubuntu.tar.gz | |
sudo mv wabt-1.0.32/bin/wasm2wat . | |
- name: Install wasm32-unknown-unknown target β | |
run: rustup target add wasm32-unknown-unknown | |
- name: Build all feature π§ͺ | |
if: env.GIT_DIFF | |
working-directory: ./packages/bindings | |
run: | | |
cargo build --all-features --target wasm32-unknown-unknown | |
- name: Check floating issue π | |
if: env.GIT_DIFF | |
run: | | |
./wasm2wat target/wasm32-unknown-unknown/debug/desmos_bindings.wasm > tmp.wat | |
./scripts/check_floating.sh tmp.wat | |