Skip to content

Commit

Permalink
ci: Switch to rustup over 3rd party action
Browse files Browse the repository at this point in the history
Also disable Linux arm builds for now, the Docker images they use are very old.
  • Loading branch information
hrkfdn committed Feb 4, 2024
1 parent f088149 commit 0215e47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ 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
features: ''
- build_target: macos-x86_64
os: macos-latest
os: macos-13
artifact_suffix: macos-x86_64
target: x86_64-apple-darwin
features: '--no-default-features --features rodio_backend,pancurses_backend'
Expand All @@ -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
Expand Down

0 comments on commit 0215e47

Please sign in to comment.