diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d37509c..20ff267 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,10 +21,9 @@ jobs: ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }} - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - name: Install alsa and udev run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev if: runner.os == 'linux' @@ -43,10 +42,9 @@ jobs: ~/.cargo/git/db/ target/ key: ubuntu-latest-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }} - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - name: Install alsa and udev run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev - name: Run doc tests with all features (this also compiles README examples) @@ -64,11 +62,10 @@ jobs: ~/.cargo/git/db/ target/ key: ubuntu-latest-cargo-build-stable-${{ hashFiles('**/Cargo.toml') }} - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: stable components: rustfmt, clippy - override: true - name: Install alsa and udev run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev - name: Run clippy diff --git a/.github/workflows/deploy-page.yaml b/.github/workflows/deploy-page.yaml index a223c37..52f04bb 100644 --- a/.github/workflows/deploy-page.yaml +++ b/.github/workflows/deploy-page.yaml @@ -14,10 +14,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - name: Install rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - name: Install Dependencies run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev - name: Install trunk diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2e2f769..db05466 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -45,20 +45,18 @@ jobs: run: | rm build.rs - name: Install rust toolchain for Apple Silicon - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: stable - target: aarch64-apple-darwin - override: true + targets: aarch64-apple-darwin - name: Build release for Apple Silicon run: | SDKROOT=$(xcrun -sdk macosx --show-sdk-path) cargo build --release --target=aarch64-apple-darwin - name: Install rust toolchain for Apple x86 - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: stable - target: x86_64-apple-darwin - override: true + targets: x86_64-apple-darwin - name: Build release for x86 Apple run: | SDKROOT=$(xcrun -sdk macosx --show-sdk-path) cargo build --release --target=x86_64-apple-darwin @@ -93,10 +91,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - name: Install rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - name: Install Dependencies run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev - name: Build release @@ -129,10 +126,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - name: Install rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - name: Install dotnet if: ${{ env.BUILD_INSTALLER }} uses: actions/setup-dotnet@v3 @@ -180,10 +176,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - name: Install rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: stable - override: true - name: Install Dependencies run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev - name: Install trunk