1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-29 04:51:13 +00:00

Refine GHA workflows (#3023)

This commit is contained in:
Yuki Okushi 2023-04-24 04:46:57 +09:00 committed by GitHub
parent 5d4f591875
commit de1efa673f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 27 deletions

View file

@ -20,14 +20,10 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install Rust - name: Install Rust
uses: actions-rs/toolchain@v1 run: |
with: rustup set profile minimal
toolchain: nightly rustup install nightly
profile: minimal rustup override set nightly
override: true
- name: Check benchmark - name: Check benchmark
uses: actions-rs/cargo@v1 run: cargo bench --bench=server -- --sample-size=15
with:
command: bench
args: --bench=server -- --sample-size=15

View file

@ -46,28 +46,24 @@ jobs:
run: vcpkg install openssl:x64-windows run: vcpkg install openssl:x64-windows
- name: Install ${{ matrix.version }} - name: Install ${{ matrix.version }}
uses: actions-rs/toolchain@v1 run: |
with: rustup set profile minimal
toolchain: ${{ matrix.version }} rustup install ${{ matrix.version }}
profile: minimal rustup override set ${{ matrix.version }}
override: true
- name: Install cargo-hack - name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack uses: taiki-e/install-action@cargo-hack
- name: Generate Cargo.lock - name: Generate Cargo.lock
uses: actions-rs/cargo@v1 run: cargo generate-lockfile
with: { command: generate-lockfile }
- name: Cache Dependencies - name: Cache Dependencies
uses: Swatinem/rust-cache@v1.2.0 uses: Swatinem/rust-cache@v2.2.1
- name: check minimal - name: check minimal
uses: actions-rs/cargo@v1 run: cargo ci-check-min
with: { command: ci-check-min }
- name: check default - name: check default
uses: actions-rs/cargo@v1 run: cargo ci-check-default
with: { command: ci-check-default }
- name: tests - name: tests
timeout-minutes: 60 timeout-minutes: 60
@ -107,7 +103,7 @@ jobs:
- name: Generate Cargo.lock - name: Generate Cargo.lock
run: cargo generate-lockfile run: cargo generate-lockfile
- name: Cache Dependencies - name: Cache Dependencies
uses: Swatinem/rust-cache@v1.2.0 uses: Swatinem/rust-cache@v2.2.1
- name: check feature combinations - name: check feature combinations
run: cargo ci-check-all-feature-powerset run: cargo ci-check-all-feature-powerset
@ -134,7 +130,7 @@ jobs:
- name: Generate Cargo.lock - name: Generate Cargo.lock
run: cargo generate-lockfile run: cargo generate-lockfile
- name: Cache Dependencies - name: Cache Dependencies
uses: Swatinem/rust-cache@v1.3.0 uses: Swatinem/rust-cache@v2.2.1
- name: Test with cargo-nextest - name: Test with cargo-nextest
run: cargo nextest run run: cargo nextest run

View file

@ -62,12 +62,10 @@ jobs:
cargo update -p=zstd-sys --precise=2.0.1+zstd.1.5.2 cargo update -p=zstd-sys --precise=2.0.1+zstd.1.5.2
- name: check minimal - name: check minimal
uses: actions-rs/cargo@v1 run: cargo ci-check-min
with: { command: ci-check-min }
- name: check default - name: check default
uses: actions-rs/cargo@v1 run: cargo ci-check-default
with: { command: ci-check-default }
- name: tests - name: tests
timeout-minutes: 60 timeout-minutes: 60