feat(math): add support for some math functions (#483)

This commit is contained in:
Andrew Westberg 2024-08-01 22:35:18 +00:00 committed by GitHub
parent 3dbd582207
commit 2c69435046
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 201959 additions and 31 deletions

View file

@ -1,7 +1,7 @@
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
on:
push: {}
push: { }
name: Validate
@ -11,8 +11,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
rust: [stable]
os: [ windows-latest, ubuntu-latest, macOS-latest ]
rust: [ stable ]
runs-on: ${{ matrix.os }}
@ -21,16 +21,17 @@ jobs:
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Run cargo check Windows
if: matrix.os == 'windows-latest'
run: cargo check --no-default-features --features num
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
if: matrix.os != 'windows-latest'
run: cargo check
test:
name: Test Suite
@ -40,16 +41,27 @@ jobs:
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
run: cargo test
test-windows:
name: Test Suite Windows
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
command: test
toolchain: stable
- name: Run cargo test
run: cargo test --no-default-features --features num
lints:
name: Lints
@ -59,21 +71,15 @@ jobs:
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
run: |
cargo clippy -- -D warnings
cargo clippy --no-default-features --features num -- -D warnings