diff --git a/.github/workflows/build-binary.yaml b/.github/workflows/build-binary.yaml index 248c195..9a01986 100644 --- a/.github/workflows/build-binary.yaml +++ b/.github/workflows/build-binary.yaml @@ -75,17 +75,18 @@ jobs: with: name: web-build path: web/build - - name: Cache dependencies - uses: Swatinem/rust-cache@v2 - - name: Install musl-tools - run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools - if: contains(matrix.platform.target, 'musl') + - name: Read Toolchain Version + uses: SebRollen/toml-action@v1.2.0 + id: read_rust_toolchain + with: + file: rust-toolchain.toml + field: toolchain.channel - name: Build binary - uses: houseabsolute/actions-rust-cross@v0 + uses: houseabsolute/actions-rust-cross@v1 with: command: build target: ${{ matrix.platform.target }} - toolchain: stable + toolchain: ${{ steps.read_rust_toolchain.outputs.value }} args: "--locked --release" strip: true - name: Package as archive diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index 8e3d442..3fad791 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -26,7 +26,7 @@ jobs: - name: Checkout repo uses: actions/checkout@v4 - - run: rustup default stable && rustup component add clippy && rustup component add rustfmt --toolchain nightly + - run: rustup install && rustup component add rustfmt --toolchain nightly - name: Cache dependencies uses: swatinem/rust-cache@v2 diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..0c1a074 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.93.0" +components = ["clippy"]