diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2cbb0324..9ff74d56 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -29,6 +29,11 @@ jobs: output: cargo-binstall archive: zip use-cross: false + - target: aarch64-apple-darwin + os: macos-latest + output: cargo-binstall + archive: zip + use-cross: false - target: armv7-unknown-linux-gnueabihf os: ubuntu-20.04 output: cargo-binstall @@ -98,7 +103,7 @@ jobs: - name: Create archive (tgz, linux) if: ${{ matrix.os != 'macos-latest' && matrix.os != 'windows-latest' }} run: tar -czvf cargo-binstall-${{ matrix.target }}.tgz ${{ matrix.output }} - + - name: Create archive (zip, windows) if: ${{ matrix.os == 'windows-latest' }} run: tar.exe -a -c -f cargo-binstall-${{ matrix.target }}.zip ${{ matrix.output }} @@ -152,14 +157,6 @@ jobs: - uses: actions/checkout@v2 - uses: FranzDiebold/github-env-vars-action@v1.2.1 - - name: Configure toolchain - if: ${{ matrix.target == 'x86_64-unknown-linux-musl' }} - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} - override: true - - uses: actions/download-artifact@v2 with: name: cargo-binstall-${{ matrix.target }}.${{ matrix.archive }} @@ -171,7 +168,7 @@ jobs: - name: "Extract build artifact (zip, windows)" if: ${{ matrix.os == 'windows-latest' }} run: tar.exe -xvf cargo-binstall-${{ matrix.target }}.zip - + - name: "Extract build artifact (zip, macos)" if: ${{ matrix.os == 'macos-latest' }} run: unzip cargo-binstall-${{ matrix.target }}.zip diff --git a/README.md b/README.md index c28d105e..11c58489 100644 --- a/README.md +++ b/README.md @@ -7,22 +7,32 @@ To support `binstall` maintainers must add configuration values to `Cargo.toml` To get started _using_ `cargo-binstall`, first install the binary (either via `cargo install cargo-binstall` or by downloading a pre-compiled [release](https://github.com/ryankurte/cargo-binstall/releases). -linux x86_64: +linux x86\_64: ``` -wget https://github.com/ryankurte/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-gnu.tgz +wget https://github.com/ryankurte/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz ``` linux armv7: ``` -wget https://github.com/ryankurte/cargo-binstall/releases/latest/download/cargo-binstall-armv7-unknown-linux-gnueabihf.tgz +wget https://github.com/ryankurte/cargo-binstall/releases/latest/download/cargo-binstall-armv7-unknown-linux-musleabihf.tgz ``` -macos x86_64: +linux arm64: +``` +wget https://github.com/ryankurte/cargo-binstall/releases/latest/download/cargo-binstall-aarch64-unknown-linux-musleabihf.tgz +``` + +macos x86\_64: ``` wget https://github.com/ryankurte/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-apple-darwin.zip ``` -windows x86_64: +macos M1: +``` +wget https://github.com/ryankurte/cargo-binstall/releases/latest/download/cargo-binstall-aarch64-apple-darwin.zip +``` + +windows x86\_64: ``` wget https://github.com/ryankurte/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-pc-windows-msvc.zip ```