Skip to content

Deduplicate Const when wiring new node in TypedGraph in typed graph + fixes in NNEF #6687

Deduplicate Const when wiring new node in TypedGraph in typed graph + fixes in NNEF

Deduplicate Const when wiring new node in TypedGraph in typed graph + fixes in NNEF #6687

name: Beta and nightly Rust
on:
pull_request:
schedule:
- cron: '0 5 * * *'
env:
CARGO_INCREMENTAL: false
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
jobs:
linux:
strategy:
matrix:
rust: [ beta, nightly ]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: |
~/.rustup
~/.cargo/registry
~/.cargo/git
target
.cached
# ~/.cache/sccache
key: ${{ runner.os }}-main-${{matrix.rust}}-${{steps.date.outputs.date}}-d
# - name: "Setup sccache"
# run: .travis/setup-sccache.sh
- name: Rustup update
run: rustup update
- name: Native script
env:
RUST_VERSION: ${{matrix.rust}}
run: .travis/regular-tests.sh
# - name: Stop sccache server
# run: sccache --stop-server || true
warnings:
strategy:
matrix:
rust: [ 1.75.0, beta ]
os: [ ubuntu-latest, macOS-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: "-D warnings"
RUST_VERSION: ${{matrix.rust}}
steps:
- uses: actions/checkout@v4
- name: Rustup update
run: |
ROOT=. .travis/ci-system-setup.sh
- name: cargo check, -D warnings
if: runner.os == 'Linux'
run: cargo check -p test-tflite
cargo-clippy:
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest ]
rust: [ stable, beta, nightly ]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
RUST_VERSION: ${{matrix.rust}}
RUSTFLAGS: "-D warnings --force-warn unknown_lints"
ROOT: .
steps:
- uses: actions/checkout@v4
- name: Rustup update, install clippy
run: |
.travis/ci-system-setup.sh
rustup +${{matrix.rust}} component add clippy
- name: Run cargo-clippy
if: runner.os == 'Linux'
run: cargo clippy -p test-tflite
- name: Run cargo-clippy
if: runner.os == 'macos'
run: cargo clippy -p test-metal -p tract-metal
cargo-deny:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Rustup update
run: rustup update
- name: Install cargo-deny
run: |
curl -L https://github.com/EmbarkStudios/cargo-deny/releases/download/0.14.24/cargo-deny-0.14.24-x86_64-unknown-linux-musl.tar.gz \
| tar -zx --strip-components=1 "cargo-deny-0.14.24-x86_64-unknown-linux-musl/cargo-deny"
- name: Run cargo-deny
run: .travis/cargo-deny-check.sh