Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cargo-binstall as fallback in main.sh #8

Merged
merged 26 commits into from
Jun 10, 2022
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
129207f
Use `cargo-binstall` as fallback in `main.sh`
NobodyXu May 31, 2022
71aaa21
Fix download: Use `curl` with https >=tls1.2 with retry
NobodyXu May 31, 2022
59b2718
Fix typo in `cargo_binstall` of `main.sh`
NobodyXu May 31, 2022
c0d0c84
Install `cargo-binstall` and cache it in `cargo_bin` of `main.sh`
NobodyXu May 31, 2022
5067f75
Fix `cargo_binstall`: Add quoting for all variables
NobodyXu May 31, 2022
0a98705
Fix `cargo_binstall`: rm `rm cargo-binstall`
NobodyXu May 31, 2022
2519b8c
Fix shfmt error
NobodyXu Jun 1, 2022
11ecb58
Refactor code: Improve readbility of fn `cargo_binstall`
NobodyXu Jun 2, 2022
1f938cf
Add `info` logging to `cargo_binstall`
NobodyXu Jun 2, 2022
bd6a7ff
Support target `x86_64-pc-windows-gnu` in fn `cargo_binstall`
NobodyXu Jun 2, 2022
2bada2f
Refactor fn `cargo_binstall`: Extract `install_cargo_binstall`
NobodyXu Jun 3, 2022
f57c414
Support installing tool `cargo-binstall` in `main.sh`
NobodyXu Jun 3, 2022
cfd7dc3
Improve logging in `install_cargo_binstall`
NobodyXu Jun 3, 2022
6cbd0ee
Rm workaround for target detection for `cargo-binstall`
NobodyXu Jun 8, 2022
9d8d9f8
Add unit test for `cargo_binstall` in `main.sh`
NobodyXu Jun 8, 2022
6f2c60c
Merge branch 'main' into feature/cargo-binstall
NobodyXu Jun 8, 2022
27fb16f
Fix `install_cargo_binstall` in `main.sh`
NobodyXu Jun 8, 2022
0c7867a
Test `cargo-binstall` on mac and win
NobodyXu Jun 8, 2022
4e18337
Update main.sh
NobodyXu Jun 8, 2022
3a9f585
Update main.sh
NobodyXu Jun 8, 2022
5390063
Test `cargo_binstall` in `main.sh` using `cargo-watch`
NobodyXu Jun 8, 2022
0042249
Add debugging in `install_cargo_binstall`
NobodyXu Jun 8, 2022
08ed50f
Try to fix final step of `install_cargo_binstall`
NobodyXu Jun 8, 2022
836c0c8
Fix `cargo_bin`: Use `$HOME` instead of `~`
NobodyXu Jun 8, 2022
dbc2ebe
Rm debugging code in `install_cargo_binstall`
NobodyXu Jun 8, 2022
602ac3a
Remove rebundant logging in `main.sh`
NobodyXu Jun 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test cargo_binstall in main.sh using cargo-watch
which is well maintained.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Jun 8, 2022
commit 5390063d36804cc4500bac0a87168d2eee19f0ae
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ jobs:
- ubuntu-20.04
tool:
# Note: Specifying the version of valgrind and wasm-pack is not supported.
# minifier is supported by cargo-binstall (through quickinstall)
- cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,mdbook,minifier
- cargo-hack@0.5.14,cargo-llvm-cov@0.4.5,cargo-minimal-versions@0.1.4,parse-changelog@0.4.8,cross@0.2.1,nextest@0.9.11,shellcheck@0.8.0,shfmt@3.5.0,wasmtime@0.37.0,mdbook@0.4.18,minifier@0.2.1
# cargo-watch is supported by cargo-binstall (through quickinstall)
- cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,mdbook,cargo-watch
- cargo-hack@0.5.14,cargo-llvm-cov@0.4.5,cargo-minimal-versions@0.1.4,parse-changelog@0.4.8,cross@0.2.1,nextest@0.9.11,shellcheck@0.8.0,shfmt@3.5.0,wasmtime@0.37.0,mdbook@0.4.18,cargo-watch@8.1.1
# Nextest supports basic version ranges as well
- nextest@0.9
include:
# Note: mdBook binary is incompatible with ubuntu 18.04,
# see https://github.com/rust-lang/mdBook/issues/1779
- os: ubuntu-18.04
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,minifier
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,cargo-watch
- os: macos-10.15
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,minifier
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,cargo-watch
- os: windows-2019
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,minifier
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,cargo-watch
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down