mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 05:28:42 +00:00

* CI: Use runner `macos-14` which uses M1 machine `macos-14` provides 3-core M1, 7G mem and 14G stroage, while `macos-latest` (`macos-13` as of writing) provides 4-core intel, 14G mem and 14G storage. While the memory is cut by half and core count reduce by 1, I believe that it would still speedup the CI since M1 is much more powerful than previous Intel CPU used in `macos-13`. It would also allow us to run tests on aarch64-apple-darwin and on universal-apple-darwin, if necessary. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * CI: Fix `e2e-test-subcrate`: Bump `cargo-audit` ver to v0.18.3 Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
36 lines
962 B
YAML
36 lines
962 B
YAML
name: Test GitHub Action installer
|
|
on:
|
|
merge_group:
|
|
pull_request:
|
|
paths:
|
|
- install-from-binstall-release.ps1
|
|
- install-from-binstall-release.sh
|
|
- action.yml
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- install-from-binstall-release.ps1
|
|
- install-from-binstall-release.sh
|
|
- action.yml
|
|
|
|
jobs:
|
|
test-gha-installer:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ macos-14, ubuntu-latest, windows-latest ]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install cargo-binstall
|
|
uses: ./ # uses action.yml from root of the repo
|
|
|
|
- name: Verify successful installation - display cargo-binstall's help
|
|
run: cargo binstall --help
|
|
|
|
- name: Verify successful installation - install example binary using cargo-binstall
|
|
run: cargo binstall -y ripgrep
|
|
|
|
- name: Verify successful installation - display help of installed binary
|
|
run: rg --help
|