Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ jobs:
${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-

- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install Rust
shell: bash
run: |
installer=$(mktemp -d)/install-rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
bash $installer --default-toolchain $(cat rust-toolchain) -y

- name: Build pdu
run: |
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/clippy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ jobs:
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-

- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install Rust
shell: bash
run: |
installer=$(mktemp -d)/install-rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
bash $installer --default-toolchain $(cat rust-toolchain) --component clippy -y

- name: Use clippy to lint code (dev)
env:
Expand Down
46 changes: 36 additions & 10 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install Rust
shell: bash
run: |
installer=$(mktemp -d)/install-rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
bash $installer --default-toolchain $(cat rust-toolchain) -y

- name: Test (dev)
env:
Expand Down Expand Up @@ -63,7 +66,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
- name: Install Rust
shell: bash
run: |
installer=$(mktemp -d)/install-rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
bash $installer --default-toolchain $(cat rust-toolchain) -y

- name: Install compilation target
run: rustup target add ${{ matrix.target }}
Expand Down Expand Up @@ -95,7 +103,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
- name: Install Rust
shell: bash
run: |
installer=$(mktemp -d)/install-rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
bash $installer --default-toolchain $(cat rust-toolchain) -y

- name: Install compilation target
run: rustup target add ${{ matrix.target }}
Expand Down Expand Up @@ -127,7 +140,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
- name: Install Rust
shell: bash
run: |
installer=$(mktemp -d)/install-rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
bash $installer --default-toolchain $(cat rust-toolchain) -y

- name: Install compilation target
run: rustup target add ${{ matrix.target }}
Expand Down Expand Up @@ -378,7 +396,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
- name: Install Rust
shell: bash
run: |
installer=$(mktemp -d)/install-rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
bash $installer --default-toolchain $(cat rust-toolchain) -y

- name: Login
run: cargo login ${{ secrets.CRATE_AUTH_TOKEN }}
Expand Down Expand Up @@ -423,9 +446,12 @@ jobs:
${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-

- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install Rust
shell: bash
run: |
installer=$(mktemp -d)/install-rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
bash $installer --default-toolchain $(cat rust-toolchain) -y

- name: Build pdu
run: |
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/fmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Install Rust
shell: bash
run: |
installer=$(mktemp -d)/install-rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
bash $installer --default-toolchain $(cat rust-toolchain) --component rustfmt -y

- name: Check code formatting
run: cargo fmt -- --check
7 changes: 6 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ jobs:
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-

- uses: dtolnay/rust-toolchain@stable
- name: Install Rust
shell: bash
run: |
installer=$(mktemp -d)/install-rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
bash $installer --default-toolchain $(cat rust-toolchain) -y

- name: Test (dev)
env:
Expand Down