diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml deleted file mode 100644 index 00f7bcf..0000000 --- a/.github/workflows/book.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Pasta book - -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Setup mdBook - uses: peaceiris/actions-mdbook@v1 - with: - mdbook-version: 'latest' - - - name: Install mdbook-katex - uses: actions-rs/cargo@v1 - with: - command: install - args: mdbook-katex - - - name: Build Pasta book - run: mdbook build book/ - - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./book/book diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 7e7afa0..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,112 +0,0 @@ -name: CI checks - -on: [push, pull_request] - -jobs: - test: - name: Test on ${{ matrix.os }} with ${{ matrix.features }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] - features: [--all-features, --no-default-features] - continue-on-error: true - steps: - - uses: actions/checkout@v4 - - name: Run tests - run: cargo test --verbose --release ${{ matrix.features }} - - name: Verify working directory is clean - run: git diff --exit-code - - test-32-bit: - name: Test on i686-unknown-linux-gnu with ${{ matrix.features }} - runs-on: ubuntu-latest - strategy: - matrix: - features: [--all-features, --no-default-features] - continue-on-error: true - steps: - - uses: actions/checkout@v4 - - name: Install cross-platform support dependencies - run: sudo apt install gcc-multilib - - run: rustup target add i686-unknown-linux-gnu - - name: Run tests - run: > - cargo test - --verbose - --target i686-unknown-linux-gnu - ${{ matrix.features }} - - name: Verify working directory is clean - run: git diff --exit-code - - no-std: - name: Check no-std target ${{ matrix.target }} - runs-on: ubuntu-latest - strategy: - matrix: - target: - - thumbv6m-none-eabi - - wasm32-unknown-unknown - - wasm32-wasi - - steps: - - uses: actions/checkout@v4 - - run: rustup target add ${{ matrix.target }} - - name: Build - run: > - cargo build - --verbose - --target ${{ matrix.target }} - --no-default-features - - bitrot: - name: Bitrot check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - # Build benchmarks to prevent bitrot - - name: Build benchmarks - run: cargo build --benches --all-features - - book: - name: Book tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: cargo build - - name: Setup mdBook - uses: peaceiris/actions-mdbook@v1 - with: - mdbook-version: '0.4.5' - - name: Test Pasta book - run: mdbook test -L target/debug/deps book/ - - codecov: - name: Code coverage - runs-on: ubuntu-latest - container: - image: xd009642/tarpaulin:develop-nightly - options: --security-opt seccomp=unconfined - steps: - - uses: actions/checkout@v4 - - name: Generate coverage report - run: cargo tarpaulin --engine llvm --all-features --timeout 600 --out Xml - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3.1.1 - - doc-links: - name: Intra-doc links - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: cargo fetch - # Requires #![deny(rustdoc::broken_intra_doc_links)] in crates. - - name: Check intra-doc links - run: cargo doc --all-features --document-private-items - - fmt: - name: Rustfmt - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: cargo fmt -- --check diff --git a/.github/workflows/lints-beta.yml b/.github/workflows/lints-beta.yml deleted file mode 100644 index 4440b58..0000000 --- a/.github/workflows/lints-beta.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Beta lints - -# These lints are only informative, so we only run them directly on branches -# and not trial-merges of PRs, to reduce noise. -on: push - -jobs: - clippy-beta: - name: Clippy (beta) - timeout-minutes: 30 - runs-on: ubuntu-latest - continue-on-error: true - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@beta - id: toolchain - - run: rustup override set ${{steps.toolchain.outputs.name}} - - name: Run Clippy (beta) - uses: actions-rs/clippy-check@v1 - continue-on-error: true - with: - name: Clippy (beta) - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features --all-targets -- -W clippy::all diff --git a/.github/workflows/lints-stable.yml b/.github/workflows/lints-stable.yml deleted file mode 100644 index 1e697ef..0000000 --- a/.github/workflows/lints-stable.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Stable lints - -# We only run these lints on trial-merges of PRs to reduce noise. -on: pull_request - -jobs: - clippy: - name: Clippy (MSRV) - timeout-minutes: 30 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Run clippy - uses: actions-rs/clippy-check@v1 - with: - name: Clippy (MSRV) - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features --all-targets -- -D warnings