diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d4d6172..f553ed0 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -79,9 +79,7 @@ jobs: runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 - - name: Configure toolchain - run: | - rustup toolchain install stable --profile minimal --no-self-update --target ${{ matrix.target }} - rustup default stable - - name: Check - run: cargo check --target ${{ matrix.target }} + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + - run: cargo check --target ${{ matrix.target }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07d36c3..c94e364 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,49 +23,41 @@ jobs: - name: linux-x86-64-gnu os: ubuntu-20.04 target: x86_64-unknown-linux-gnu - cross: false experimental: false - name: linux-x86-64-musl os: ubuntu-latest target: x86_64-unknown-linux-musl - cross: true experimental: false - name: linux-armhf-gnu os: ubuntu-20.04 target: armv7-unknown-linux-gnueabihf - cross: true experimental: false - name: linux-arm64-gnu os: ubuntu-20.04 target: aarch64-unknown-linux-gnu - cross: true experimental: false - name: mac-x86-64 os: macos-latest target: x86_64-apple-darwin - cross: false experimental: false - name: mac-arm64 os: macos-11.0 target: aarch64-apple-darwin - cross: true experimental: true - name: windows-x86-64 os: windows-latest target: x86_64-pc-windows-msvc - cross: false experimental: false - name: windows-arm64 os: windows-latest target: aarch64-pc-windows-msvc - cross: true experimental: true name: Binaries for ${{ matrix.name }} @@ -85,19 +77,13 @@ jobs: path: ~/.cargo/bin key: ${{ runner.os }}-cargo-bin-${{ hashFiles('.github/workflows/release.yml') }} - - uses: actions-rs/toolchain@v1 + - name: Build binary + uses: houseabsolute/actions-rust-cross@v0 with: - target: ${{ matrix.target }} - toolchain: stable - profile: minimal - override: true - - - uses: actions-rs/cargo@v1 - name: Build - with: - use-cross: ${{ matrix.cross }} command: build - args: --release --locked --target ${{ matrix.target }} + target: ${{ matrix.target }} + args: "--locked --release" + strip: true - name: Extract version shell: bash