From fca6087ec73fabd33b625346940321065f86a738 Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Sun, 4 Feb 2024 21:46:30 +0100 Subject: [PATCH] ci: Switch to `rustup` over 3rd party action Also disable Linux arm builds for now, the Docker images they use are very old. --- .github/workflows/cd.yml | 7 ++----- .github/workflows/ci.yml | 11 +++++------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f14ecd4aa..323c6a2a4 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -15,7 +15,7 @@ jobs: container: ${{ matrix.container }} strategy: matrix: - build_target: [linux-x86_64, linux-arm64, linux-armhf, macos-x86_64, macos-aarch64, windows-x86_64] + build_target: [linux-x86_64, macos-x86_64, macos-aarch64, windows-x86_64] include: - build_target: linux-x86_64 os: ubuntu-latest @@ -54,10 +54,7 @@ jobs: features: '--no-default-features --features rodio_backend,pancurses_backend,share_clipboard,notify' steps: - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - with: - target: ${{ matrix.target }} - toolchain: stable + run: rustup target add ${{ matrix.target }} - name: Install macOS dependencies if: matrix.os == 'macos-latest' run: brew install portaudio pkg-config diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e87b173cb..3b076a6ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - build_target: [linux, macos-x86_64, macos-aarch64, windows] + build_target: [linux-x86_64, macos-x86_64, macos-aarch64, windows] include: - - build_target: linux + - build_target: linux-x86_64 os: ubuntu-latest artifact_suffix: linux-x86_64 target: x86_64-unknown-linux-gnu @@ -48,10 +48,9 @@ jobs: target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - with: - target: ${{ matrix.target }} - components: clippy, rustfmt + run: rustup target add ${{ matrix.target }} + - name: Install clippy + rustfmt + run: rustup component add clippy rustfmt - name: Install macOS dependencies if: matrix.os == 'macos-latest' run: brew install portaudio pkg-config