From 9eee4fb05c14ff11ab74090e4c55797805820c0e Mon Sep 17 00:00:00 2001 From: Yujia Qiao Date: Sun, 6 Feb 2022 22:09:13 +0800 Subject: [PATCH] ci: format --- .github/workflows/rust.yml | 58 +++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 686a9b0..f7f4f51 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,9 +2,9 @@ name: Rust on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] concurrency: # Documentation suggests ${{ github.head_ref }}, but that's only available on pull_request/pull_request_target triggers, so using ${{ github.ref }}. @@ -20,19 +20,19 @@ jobs: name: Lints runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - components: clippy - - uses: Swatinem/rust-cache@v1 - - name: Clippy - run: cargo clippy -- -D warnings - - name: Setup cargo-hack - run: cargo install cargo-hack - - name: Check all features - run: cargo hack check --feature-powerset --no-dev-deps + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + components: clippy + - uses: Swatinem/rust-cache@v1 + - name: Clippy + run: cargo clippy -- -D warnings + - name: Setup cargo-hack + run: cargo install cargo-hack + - name: Check all features + run: cargo hack check --feature-powerset --no-dev-deps build: name: Build for ${{ matrix.target }} @@ -51,17 +51,17 @@ jobs: target: x86_64-apple-darwin steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - - uses: Swatinem/rust-cache@v1 - - name: Build release - run: cargo build --release - - name: Run tests - run: cargo test --release --verbose - - uses: actions/upload-artifact@v2 - with: - name: rathole-${{ matrix.target }} - path: target/release/${{ matrix.exe }} + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + - uses: Swatinem/rust-cache@v1 + - name: Build release + run: cargo build --release + - name: Run tests + run: cargo test --release --verbose + - uses: actions/upload-artifact@v2 + with: + name: rathole-${{ matrix.target }} + path: target/release/${{ matrix.exe }}