cargo-binstall/.github/workflows/integration.yml
Jiahao XU ec2bdb551e
Use CARGO env variable if present (#453)
* Run `$CARGO -vV` in `detect-targets` if env `CARGO` present
* Improve crate doc for `detect-targets`
* Use env var `CARGO` in `install_from_source` if present
* Test use of `CARGO` env in `tests.sh`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-10-02 04:52:25 +13:00

54 lines
1.1 KiB
YAML

name: Integration
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
uses: ./.github/workflows/build.yml
with:
for_release: false
test:
needs: build
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-apple-darwin
os: macos-latest
bin: cargo-binstall
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
bin: cargo-binstall
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
bin: cargo-binstall
- target: x86_64-pc-windows-msvc
os: windows-latest
bin: cargo-binstall.exe
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Download build
uses: actions/download-artifact@v3
with:
name: "${{ matrix.target }}.${{ matrix.bin }}"
- run: chmod +x ${{ matrix.bin }}
if: matrix.os != 'windows-latest'
- name: Test
shell: bash
run: .github/scripts/tests.sh ${{ matrix.bin }} ${{ runner.os }}