Ojbect IDs in patches #1789
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
default: true | |
components: rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- run: ./scripts/ci/fmt | |
shell: bash | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
default: true | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
- run: ./scripts/ci/lint | |
shell: bash | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
default: true | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build rust docs | |
run: ./scripts/ci/rust-docs | |
shell: bash | |
- name: Install doxygen | |
run: sudo apt-get install -y doxygen | |
shell: bash | |
cargo-deny: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
checks: | |
- advisories | |
- bans licenses sources | |
continue-on-error: ${{ matrix.checks == 'advisories' }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: EmbarkStudios/cargo-deny-action@v1 | |
with: | |
manifest-path: './rust/Cargo.toml' | |
command: check ${{ matrix.checks }} | |
build_wasm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: jetli/[email protected] | |
with: | |
# Optional version of wasm-bindgen to install(eg. '0.2.83', 'latest') | |
version: '0.2.92' | |
- name: Install wasm32 target | |
run: rustup target add wasm32-unknown-unknown | |
- name: run tests | |
run: ./scripts/ci/wasm_tests | |
js_tests: | |
runs-on: ubuntu-latest | |
needs: | |
- build_wasm | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '22' | |
- uses: jetli/[email protected] | |
with: | |
# Optional version of wasm-bindgen to install(eg. '0.2.83', 'latest') | |
version: '0.2.92' | |
- name: Install wasm32 target | |
run: rustup target add wasm32-unknown-unknown | |
- name: run tests | |
run: ./scripts/ci/js_tests | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.toolchain }} | |
default: true | |
- uses: Swatinem/rust-cache@v2 | |
- run: ./scripts/ci/build-test | |
shell: bash | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
default: true | |
- uses: Swatinem/rust-cache@v2 | |
- run: ./scripts/ci/build-test | |
shell: bash | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
default: true | |
- uses: Swatinem/rust-cache@v2 | |
- run: ./scripts/ci/build-test | |
shell: bash |