diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2023-04-22 02:53:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-22 02:53:50 +0000 |
commit | dad763e841713103eb14be0612bf3d68bb270aa4 (patch) | |
tree | 2de3257abaf69781039eaa03dcb7099958e31c51 | |
parent | Merge pull request #1107 from svenstaro/crt-static (diff) | |
parent | Update checkout to v3 (diff) | |
download | miniserve-dad763e841713103eb14be0612bf3d68bb270aa4.tar.gz miniserve-dad763e841713103eb14be0612bf3d68bb270aa4.zip |
Merge pull request #1108 from svenstaro/switch-to-dtolnay-rust-toolchain
Switch to dtolnay/rust-toolchain
-rw-r--r-- | .github/workflows/build-release.yml | 29 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 27 |
2 files changed, 11 insertions, 45 deletions
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index ceb0aed..7d59df5 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -13,77 +13,62 @@ jobs: include: - os: ubuntu-latest target: x86_64-unknown-linux-musl - cross: true compress: true cargo_flags: "" - os: ubuntu-latest target: x86_64-unknown-linux-gnu - cross: true compress: true cargo_flags: "" - os: ubuntu-latest target: aarch64-unknown-linux-musl - cross: true compress: true cargo_flags: "" - os: ubuntu-latest target: aarch64-unknown-linux-gnu - cross: true compress: true cargo_flags: "" - os: ubuntu-latest target: armv7-unknown-linux-musleabihf - cross: true compress: true cargo_flags: "" - os: ubuntu-latest target: armv7-unknown-linux-gnueabihf - cross: true compress: true cargo_flags: "" - os: ubuntu-latest target: arm-unknown-linux-musleabihf - cross: true compress: true cargo_flags: "" - os: ubuntu-latest target: mips-unknown-linux-musl - cross: true compress: false cargo_flags: "--no-default-features" - os: ubuntu-latest target: mipsel-unknown-linux-musl - cross: true compress: true cargo_flags: "--no-default-features" - os: ubuntu-latest target: mips64-unknown-linux-gnuabi64 - cross: true compress: false cargo_flags: "--no-default-features" - os: ubuntu-latest target: mips64el-unknown-linux-gnuabi64 - cross: true compress: false cargo_flags: "--no-default-features" - os: ubuntu-latest target: riscv64gc-unknown-linux-gnu - cross: true compress: false cargo_flags: "--no-default-features" - os: windows-latest target: x86_64-pc-windows-msvc - cross: false compress: true cargo_flags: "" - os: macos-latest target: x86_64-apple-darwin - cross: false compress: true cargo_flags: "" - os: ubuntu-latest target: x86_64-unknown-freebsd - cross: true compress: false cargo_flags: "" @@ -92,21 +77,17 @@ jobs: uses: actions/checkout@v2 - name: Setup Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} - override: true + uses: dtolnay/rust-toolchain@stable - run: sudo apt install musl-tools if: startsWith(matrix.os, 'ubuntu') - name: cargo build - uses: actions-rs/cargo@v1 + uses: houseabsolute/actions-rust-cross@v0 with: command: build - args: --release --locked --target=${{ matrix.target }} ${{ matrix.cargo_flags }} - use-cross: ${{ matrix.cross }} + args: --release --locked ${{ matrix.cargo_flags }} + target: ${{ matrix.target }} - name: Set exe extension for Windows run: echo "EXE=.exe" >> $env:GITHUB_ENV @@ -166,7 +147,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Download artifact aarch64-unknown-linux-gnu uses: actions/download-artifact@v3 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 840f43a..0519a2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,34 +12,19 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Rust toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - components: rustfmt, clippy + uses: dtolnay/rust-toolchain@stable - name: cargo build - uses: actions-rs/cargo@v1 - with: - command: build + run: cargo build - name: cargo test - uses: actions-rs/cargo@v1 - with: - command: test + run: cargo test - name: cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check - name: cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + run: cargo clippy -- -D warnings |