mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
Swap macos to zip, update binary lookup for binstall
This commit is contained in:
parent
7d0b700ae2
commit
87449e29e7
3 changed files with 29 additions and 10 deletions
|
@ -1,2 +1,11 @@
|
|||
[target.armv7-unknown-linux-gnueabihf]
|
||||
linker = "arm-linux-gnueabihf-gcc"
|
||||
|
||||
[target.armv7-unknown-linux-musleabihf]
|
||||
linker = "arm-linux-musleabihf-gcc"
|
||||
|
||||
[target.aarch64-unknown-linux-gnu]
|
||||
linker = "aarch64-linux-gnu-gcc"
|
||||
|
||||
[target.aarch64-unknown-linux-musl]
|
||||
linker = "aarch64-linux-musl-gcc"
|
||||
|
|
28
.github/workflows/rust.yml
vendored
28
.github/workflows/rust.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
- target: x86_64-apple-darwin
|
||||
os: macos-latest
|
||||
output: cargo-binstall
|
||||
archive: tgz
|
||||
archive: zip
|
||||
- target: armv7-unknown-linux-gnueabihf
|
||||
os: ubuntu-20.04
|
||||
output: cargo-binstall
|
||||
|
@ -83,14 +83,18 @@ jobs:
|
|||
- name: Copy and rename utility
|
||||
run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }}
|
||||
|
||||
- name: Create archive (tgz)
|
||||
if: ${{ matrix.target != 'x86_64-pc-windows-msvc' }}
|
||||
- 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)
|
||||
if: ${{ matrix.target == 'x86_64-pc-windows-msvc' }}
|
||||
- name: Create archive (zip, windows)
|
||||
if: ${{ matrix.os == 'windows-latest' }}
|
||||
run: tar.exe -a -c -f cargo-binstall-${{ matrix.target }}.zip ${{ matrix.output }}
|
||||
|
||||
- name: Create archive (zip, macos)
|
||||
if: ${{ matrix.os == 'macos-latest' }}
|
||||
run: zip cargo-binstall-${{ matrix.target }}.zip ${{ matrix.output }}
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
|
@ -122,7 +126,7 @@ jobs:
|
|||
- target: x86_64-apple-darwin
|
||||
os: macos-latest
|
||||
output: cargo-binstall
|
||||
archive: tgz
|
||||
archive: zip
|
||||
- target: x86_64-pc-windows-msvc
|
||||
os: windows-latest
|
||||
output: cargo-binstall.exe
|
||||
|
@ -136,13 +140,17 @@ jobs:
|
|||
with:
|
||||
name: cargo-binstall-${{ matrix.target }}.${{ matrix.archive }}
|
||||
|
||||
- name: "Extract build artifact (tgz)"
|
||||
if: ${{ matrix.target != 'x86_64-pc-windows-msvc' }}
|
||||
- name: "Extract build artifact (tgz, linux)"
|
||||
if: ${{ matrix.os != 'windows-latest' && matrix.os != 'macos-latest' }}
|
||||
run: tar -xvf cargo-binstall-${{ matrix.target }}.tgz
|
||||
|
||||
- name: "Extract build artifact (zip)"
|
||||
if: ${{ matrix.target == 'x86_64-pc-windows-msvc' }}
|
||||
- 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
|
||||
|
||||
- name: "Run binstall"
|
||||
run: ./${{ matrix.output }} cargo-binstall --manifest-path . --no-confirm
|
||||
|
|
|
@ -15,6 +15,8 @@ bin-dir = "{ bin }{ format }"
|
|||
|
||||
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
|
||||
pkg-fmt = "zip"
|
||||
[package.metadata.binstall.overrides.x86_64-apple-darwin]
|
||||
pkg-fmt = "zip"
|
||||
|
||||
[dependencies]
|
||||
crates_io_api = "0.7.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue