diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1faca0a..a8db066 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: run: cargo fmt --check - name: Clippy - run: cargo fmt --all-targets -- --deny warnings + run: cargo clippy --all-targets -- --deny warnings - name: Build run: cargo build --verbose --all-targets diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e849d37..b924d32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,9 +84,24 @@ jobs: fail-fast: false matrix: job: - - { target: x86_64-unknown-linux-gnu, arch: amd64, os: ubuntu-20.04, build-cmd: "cargo" } - - { target: x86_64-unknown-linux-musl, arch: amd64, os: ubuntu-20.04, build-cmd: "cross" } - - { target: arm-unknown-linux-gnueabi, arch: armel, os: ubuntu-20.04, build-cmd: "cross" } + - { + target: x86_64-unknown-linux-gnu, + arch: amd64, + os: ubuntu-20.04, + build-cmd: "cargo", + } + - { + target: x86_64-unknown-linux-musl, + arch: amd64, + os: ubuntu-20.04, + build-cmd: "cross", + } + - { + target: arm-unknown-linux-gnueabi, + arch: armel, + os: ubuntu-20.04, + build-cmd: "cross", + } - { target: arm-unknown-linux-gnueabihf, arch: armhf, @@ -99,17 +114,42 @@ jobs: os: ubuntu-20.04, build-cmd: "cross", } - - { target: aarch64-unknown-linux-gnu, arch: arm64, os: ubuntu-20.04, build-cmd: "cross" } + - { + target: aarch64-unknown-linux-gnu, + arch: arm64, + os: ubuntu-20.04, + build-cmd: "cross", + } - { target: aarch64-unknown-linux-musl, arch: arm64, os: ubuntu-20.04, build-cmd: "cross", } - - { target: x86_64-apple-darwin, arch: darwin, os: macos-latest, build-cmd: "cargo" } - - { target: aarch64-apple-darwin, arch: darwin, os: macos-latest, build-cmd: "cargo" } - - { target: x86_64-pc-windows-msvc, arch: win64, os: windows-2019, build-cmd: "cargo" } - - { target: x86_64-pc-windows-gnu, arch: win64, os: windows-2019, build-cmd: "cargo" } + - { + target: x86_64-apple-darwin, + arch: darwin, + os: macos-latest, + build-cmd: "cargo", + } + - { + target: aarch64-apple-darwin, + arch: darwin, + os: macos-latest, + build-cmd: "cargo", + } + - { + target: x86_64-pc-windows-msvc, + arch: win64, + os: windows-2019, + build-cmd: "cargo", + } + - { + target: x86_64-pc-windows-gnu, + arch: win64, + os: windows-2019, + build-cmd: "cargo", + } steps: - name: Checkout source code uses: actions/checkout@v4 @@ -161,7 +201,7 @@ jobs: rustup target add ${{ matrix.job.target }} - name: Build - run: ${{ matrix.job.build-cmd }} --release --bins --lib --target=${{ matrix.job.target }} + run: ${{ matrix.job.build-cmd }} build --release --bins --lib --target=${{ matrix.job.target }} - name: Debian package if: contains(matrix.job.target, '-linux-gnu')