mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-30 10:50:25 +00:00
Compare commits
101 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
581b570b73 | ||
|
|
57339998f1 | ||
|
|
dda69eeab2 | ||
|
|
3f4a57923d | ||
|
|
cb1e26fae1 | ||
|
|
74efbe3ca4 | ||
|
|
0ed66b7383 | ||
|
|
b9424a9dfb | ||
|
|
0b2484c3a0 | ||
|
|
bd71caf797 | ||
|
|
4696ae1646 | ||
|
|
a1eacca287 | ||
|
|
c25592b07d | ||
|
|
61afdb8d12 | ||
|
|
536bc7c409 | ||
|
|
f317c8aedc | ||
|
|
de0e9b667c | ||
|
|
45e69d69e2 | ||
|
|
9c40419eb7 | ||
|
|
b8a66e6289 | ||
|
|
a8803585a3 | ||
|
|
80528fecb9 | ||
|
|
878e967972 | ||
|
|
b1b32c59f1 | ||
|
|
a8398547d2 | ||
|
|
15ad10ce15 | ||
|
|
27a2597e2a | ||
|
|
41cb1134d7 | ||
|
|
13e84cc696 | ||
|
|
d744cfca57 | ||
|
|
f6e099c85c | ||
|
|
a86d24f499 | ||
|
|
c13274e43a | ||
|
|
b0d750a59e | ||
|
|
7d5481ab3a | ||
|
|
b6afd8d427 | ||
|
|
d1839c2f68 | ||
|
|
85064bbc1c | ||
|
|
9fdefab8ca | ||
|
|
c430b7f8ce | ||
|
|
cfca345a65 | ||
|
|
a76dc5ad72 | ||
|
|
1dda3d1d7e | ||
|
|
92705122ed | ||
|
|
7e5692dc7d | ||
|
|
8aa291abce | ||
|
|
36cb23f9a6 | ||
|
|
ab4e6f5142 | ||
|
|
aae9c8b0a3 | ||
|
|
6eaed8fc4e | ||
|
|
fd84b52d9c | ||
|
|
d637ba13b3 | ||
|
|
f343021ffc | ||
|
|
d7602d9dcb | ||
|
|
31800b17cc | ||
|
|
e6302a3430 | ||
|
|
1e5fc1d1ff | ||
|
|
ca9824f699 | ||
|
|
de0d285973 | ||
|
|
fb59c794dd | ||
|
|
daa62f7ff1 | ||
|
|
f113ef4cd9 | ||
|
|
6a6a02956b | ||
|
|
782f135cee | ||
|
|
d39d50062b | ||
|
|
6f1ebcd9e2 | ||
|
|
161dccbf9a | ||
|
|
b410f0ad6a | ||
|
|
e067205061 | ||
|
|
78118df4d7 | ||
|
|
1cbab0616a | ||
|
|
e937b634a0 | ||
|
|
37f510303a | ||
|
|
841e33c134 | ||
|
|
095ba5e160 | ||
|
|
0e32218b80 | ||
|
|
4a4d2c21ca | ||
|
|
64d4f090ec | ||
|
|
60952837b3 | ||
|
|
640bc768ee | ||
|
|
d5b4eb3fc2 | ||
|
|
83e8fa8971 | ||
|
|
2ab583ea78 | ||
|
|
6745402100 | ||
|
|
03433ef024 | ||
|
|
47e0a4c507 | ||
|
|
7909142ffc | ||
|
|
cc6a4561c7 | ||
|
|
e71b030c0f | ||
|
|
2e924a47e0 | ||
|
|
27b6cde93d | ||
|
|
238cf20a47 | ||
|
|
5d3b331fca | ||
|
|
362d8665ec | ||
|
|
0b1022563b | ||
|
|
70b038cf3c | ||
|
|
2e2f046ba3 | ||
|
|
bc0a06a003 | ||
|
|
8b8c667dd4 | ||
|
|
b0517abb78 | ||
|
|
e92f6df9a9 |
9
.github/dependabot.yml
vendored
Normal file
9
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: github-actions
|
||||||
|
directory: /
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
commit-message:
|
||||||
|
prefix: ''
|
||||||
|
labels: []
|
||||||
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@@ -25,20 +25,17 @@ jobs:
|
|||||||
os:
|
os:
|
||||||
- ubuntu-20.04
|
- ubuntu-20.04
|
||||||
tool:
|
tool:
|
||||||
# Note: Specifying the version of valgrind and wasm-pack is not supported.
|
# Note: Specifying the version of valgrind is not supported.
|
||||||
- cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,mdbook
|
# cargo-watch is supported by cargo-binstall (through quickinstall)
|
||||||
- cargo-hack@0.5.13,cargo-llvm-cov@0.4.3,cargo-minimal-versions@0.1.3,parse-changelog@0.4.7,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-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cross,nextest,protoc,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch
|
||||||
|
- cargo-hack@0.5.17,cargo-llvm-cov@0.4.14,cargo-minimal-versions@0.1.5,parse-changelog@0.5.0,cargo-udeps@0.1.32,cross@0.2.4,nextest@0.9.11,protoc@3.21.5,shellcheck@0.8.0,shfmt@3.5.1,wasm-pack@0.10.3,wasmtime@0.40.0,mdbook@0.4.21,mdbook-linkcheck@0.7.6,cargo-watch@8.1.1
|
||||||
# Nextest supports basic version ranges as well
|
# Nextest supports basic version ranges as well
|
||||||
- nextest@0.9
|
- nextest@0.9
|
||||||
include:
|
include:
|
||||||
# Note: mdBook binary is incompatible with ubuntu 18.04,
|
- os: macos-11
|
||||||
# see https://github.com/rust-lang/mdBook/issues/1779
|
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cross,nextest,protoc,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch
|
||||||
- os: ubuntu-18.04
|
|
||||||
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,valgrind,wasm-pack,wasmtime
|
|
||||||
- os: macos-10.15
|
|
||||||
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,wasm-pack,wasmtime,mdbook
|
|
||||||
- os: windows-2019
|
- os: windows-2019
|
||||||
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest
|
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cross,nextest,protoc,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|||||||
14
.shellcheckrc
Normal file
14
.shellcheckrc
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# ShellCheck configuration
|
||||||
|
# https://github.com/koalaman/shellcheck/blob/HEAD/shellcheck.1.md#rc-files
|
||||||
|
|
||||||
|
# See also:
|
||||||
|
# https://www.shellcheck.net/wiki/Optional
|
||||||
|
# https://google.github.io/styleguide/shellguide.html
|
||||||
|
|
||||||
|
# https://www.shellcheck.net/wiki/SC2292
|
||||||
|
# https://google.github.io/styleguide/shellguide.html#s6.3-tests
|
||||||
|
enable=require-double-brackets
|
||||||
|
|
||||||
|
# https://www.shellcheck.net/wiki/SC2250
|
||||||
|
# https://google.github.io/styleguide/shellguide.html#s5.6-variable-expansion
|
||||||
|
enable=require-variable-braces
|
||||||
200
CHANGELOG.md
200
CHANGELOG.md
@@ -10,6 +10,170 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.11.2] - 2022-08-23
|
||||||
|
|
||||||
|
- Update `wasmtime@latest` to 0.40.0.
|
||||||
|
- Update `cargo-udeps@latest` to 0.1.32.
|
||||||
|
- Update `protoc@latest` to 3.21.5.
|
||||||
|
|
||||||
|
## [1.11.1] - 2022-08-13
|
||||||
|
|
||||||
|
- Make installation that uses `cargo-binstall` robust. ([#19](https://github.com/taiki-e/install-action/pull/19), thanks @NobodyXu)
|
||||||
|
|
||||||
|
## [1.11.0] - 2022-08-13
|
||||||
|
|
||||||
|
- Update `cargo-hack@latest` to 0.5.17.
|
||||||
|
- Support `cargo-udeps`. ([#17](https://github.com/taiki-e/install-action/pull/17), thanks @gifnksm)
|
||||||
|
|
||||||
|
## [1.10.4] - 2022-08-06
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.4.14.
|
||||||
|
|
||||||
|
## [1.10.3] - 2022-08-01
|
||||||
|
|
||||||
|
- Support `wasm-pack` on Windows.
|
||||||
|
|
||||||
|
- Support specifying the version of `wasm-pack`.
|
||||||
|
|
||||||
|
## [1.10.2] - 2022-08-01
|
||||||
|
|
||||||
|
- Support `protoc` on Windows.
|
||||||
|
|
||||||
|
## [1.10.1] - 2022-08-01
|
||||||
|
|
||||||
|
- Fix missing include files when installing `protoc` on Linux and macOS.
|
||||||
|
|
||||||
|
- Installation of `protoc` on Windows is not currently working (in all released versions) and is considered unsupported.
|
||||||
|
|
||||||
|
## [1.10.0] - 2022-08-01
|
||||||
|
|
||||||
|
- Set the `PROTOC` environment variable when installing `protoc` if it has not already been set.
|
||||||
|
|
||||||
|
## [1.9.0] - 2022-08-01
|
||||||
|
|
||||||
|
- Support `protoc`.
|
||||||
|
- Support `shellcheck` on Windows.
|
||||||
|
- Support `shfmt` on Windows.
|
||||||
|
|
||||||
|
## [1.8.4] - 2022-08-01
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.4.13.
|
||||||
|
|
||||||
|
## [1.8.3] - 2022-07-30
|
||||||
|
|
||||||
|
- Support `taiki-e/install-action@mdbook-linkcheck` shorthand for mdbook-linkcheck.
|
||||||
|
|
||||||
|
## [1.8.2] - 2022-07-30
|
||||||
|
|
||||||
|
- Update `cargo-hack@latest` to 0.5.16.
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.4.12.
|
||||||
|
|
||||||
|
## [1.8.1] - 2022-07-26
|
||||||
|
|
||||||
|
- Fix `cargo-binstall` installation failure.
|
||||||
|
|
||||||
|
## [1.8.0] - 2022-07-26
|
||||||
|
|
||||||
|
- Only use musl binaries for nextest if glibc isn't available. See [#13](https://github.com/taiki-e/install-action/issues/13) for more.
|
||||||
|
|
||||||
|
- Fix `cargo-binstall` installation failure. ([#16](https://github.com/taiki-e/install-action/pull/16), thanks @CAD97)
|
||||||
|
|
||||||
|
- Accept `cargo-nextest` as an alias for `nextest`. ([#15](https://github.com/taiki-e/install-action/pull/15), thanks @CAD97)
|
||||||
|
|
||||||
|
## [1.7.0] - 2022-07-25
|
||||||
|
|
||||||
|
- Install Rust-related binaries to `/usr/local/bin` when `$CARGO_HOME/bin` and `$HOME/.cargo/bin` is not available.
|
||||||
|
|
||||||
|
## [1.6.1] - 2022-07-25
|
||||||
|
|
||||||
|
- Fix diagnostics.
|
||||||
|
|
||||||
|
## [1.6.0] - 2022-07-25
|
||||||
|
|
||||||
|
- Support `mdbook-linkcheck`.
|
||||||
|
- Support `mdbook` on Windows.
|
||||||
|
- Support `wasmtime` on Windows.
|
||||||
|
- Support `nextest` on Linux (musl).
|
||||||
|
- Fix installation failure when `$CARGO_HOME/bin` and `$HOME/.cargo/bin` is not available.
|
||||||
|
|
||||||
|
## [1.5.11] - 2022-07-25
|
||||||
|
|
||||||
|
- Fix `cargo-binstall` installation on macOS and Windows.
|
||||||
|
|
||||||
|
## [1.5.10] - 2022-07-24
|
||||||
|
|
||||||
|
- Update `parse-changelog@latest` to 0.5.0.
|
||||||
|
|
||||||
|
## [1.5.9] - 2022-07-22
|
||||||
|
|
||||||
|
- Update `wasmtime@latest` to 0.39.1.
|
||||||
|
- Update `mdbook@latest` to 0.4.21.
|
||||||
|
|
||||||
|
## [1.5.8] - 2022-07-21
|
||||||
|
|
||||||
|
- Update `wasmtime@latest` to 0.39.0.
|
||||||
|
|
||||||
|
## [1.5.7] - 2022-07-20
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.4.11.
|
||||||
|
|
||||||
|
## [1.5.6] - 2022-07-18
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.4.10.
|
||||||
|
|
||||||
|
## [1.5.5] - 2022-07-18
|
||||||
|
|
||||||
|
- Update `cargo-hack@latest` to 0.5.15.
|
||||||
|
|
||||||
|
## [1.5.4] - 2022-07-16
|
||||||
|
|
||||||
|
- Update `mdbook@latest` to 0.4.20.
|
||||||
|
- Update `cross@latest` to 0.2.4.
|
||||||
|
- Update `cargo-minimal-versions@latest` to 0.1.5.
|
||||||
|
- Update `parse-changelog@latest` to 0.4.9.
|
||||||
|
|
||||||
|
## [1.5.3] - 2022-07-07
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.4.9.
|
||||||
|
|
||||||
|
## [1.5.2] - 2022-07-02
|
||||||
|
|
||||||
|
- Update `cross@latest` to 0.2.2.
|
||||||
|
|
||||||
|
## [1.5.1] - 2022-07-02
|
||||||
|
|
||||||
|
- Update `mdbook@latest` to 0.4.19.
|
||||||
|
|
||||||
|
## [1.5.0] - 2022-06-28
|
||||||
|
|
||||||
|
- Enable secure mode for `cargo-binstall`. ([#9](https://github.com/taiki-e/install-action/pull/9), thanks @NobodyXu)
|
||||||
|
- Update `wasmtime@latest` to 0.38.1.
|
||||||
|
|
||||||
|
## [1.4.2] - 2022-06-16
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.4.8.
|
||||||
|
|
||||||
|
## [1.4.1] - 2022-06-13
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.4.7.
|
||||||
|
|
||||||
|
## [1.4.0] - 2022-06-10
|
||||||
|
|
||||||
|
- Support `cargo-binstall`. ([#8](https://github.com/taiki-e/install-action/pull/8), thanks @NobodyXu)
|
||||||
|
- Use `cargo-binstall` as a fallback if the unsupported package is specified. ([#8](https://github.com/taiki-e/install-action/pull/8), thanks @NobodyXu)
|
||||||
|
- Update `shfmt@latest` to 3.5.1.
|
||||||
|
|
||||||
|
## [1.3.13] - 2022-06-02
|
||||||
|
|
||||||
|
- Update `cargo-hack@latest` to 0.5.14.
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.4.5.
|
||||||
|
- Update `cargo-minimal-versions@latest` to 0.1.4.
|
||||||
|
- Update `parse-changelog@latest` to 0.4.8.
|
||||||
|
|
||||||
|
## [1.3.12] - 2022-05-30
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.4.4.
|
||||||
|
|
||||||
## [1.3.11] - 2022-05-29
|
## [1.3.11] - 2022-05-29
|
||||||
|
|
||||||
- Update `cargo-llvm-cov@latest` to 0.4.3.
|
- Update `cargo-llvm-cov@latest` to 0.4.3.
|
||||||
@@ -132,7 +296,41 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
Initial release
|
Initial release
|
||||||
|
|
||||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.3.11...HEAD
|
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.11.2...HEAD
|
||||||
|
[1.11.2]: https://github.com/taiki-e/install-action/compare/v1.11.1...v1.11.2
|
||||||
|
[1.11.1]: https://github.com/taiki-e/install-action/compare/v1.11.0...v1.11.1
|
||||||
|
[1.11.0]: https://github.com/taiki-e/install-action/compare/v1.10.4...v1.11.0
|
||||||
|
[1.10.4]: https://github.com/taiki-e/install-action/compare/v1.10.3...v1.10.4
|
||||||
|
[1.10.3]: https://github.com/taiki-e/install-action/compare/v1.10.2...v1.10.3
|
||||||
|
[1.10.2]: https://github.com/taiki-e/install-action/compare/v1.10.1...v1.10.2
|
||||||
|
[1.10.1]: https://github.com/taiki-e/install-action/compare/v1.10.0...v1.10.1
|
||||||
|
[1.10.0]: https://github.com/taiki-e/install-action/compare/v1.9.0...v1.10.0
|
||||||
|
[1.9.0]: https://github.com/taiki-e/install-action/compare/v1.8.4...v1.9.0
|
||||||
|
[1.8.4]: https://github.com/taiki-e/install-action/compare/v1.8.3...v1.8.4
|
||||||
|
[1.8.3]: https://github.com/taiki-e/install-action/compare/v1.8.2...v1.8.3
|
||||||
|
[1.8.2]: https://github.com/taiki-e/install-action/compare/v1.8.1...v1.8.2
|
||||||
|
[1.8.1]: https://github.com/taiki-e/install-action/compare/v1.8.0...v1.8.1
|
||||||
|
[1.8.0]: https://github.com/taiki-e/install-action/compare/v1.7.0...v1.8.0
|
||||||
|
[1.7.0]: https://github.com/taiki-e/install-action/compare/v1.6.1...v1.7.0
|
||||||
|
[1.6.1]: https://github.com/taiki-e/install-action/compare/v1.6.0...v1.6.1
|
||||||
|
[1.6.0]: https://github.com/taiki-e/install-action/compare/v1.5.11...v1.6.0
|
||||||
|
[1.5.11]: https://github.com/taiki-e/install-action/compare/v1.5.10...v1.5.11
|
||||||
|
[1.5.10]: https://github.com/taiki-e/install-action/compare/v1.5.9...v1.5.10
|
||||||
|
[1.5.9]: https://github.com/taiki-e/install-action/compare/v1.5.8...v1.5.9
|
||||||
|
[1.5.8]: https://github.com/taiki-e/install-action/compare/v1.5.7...v1.5.8
|
||||||
|
[1.5.7]: https://github.com/taiki-e/install-action/compare/v1.5.6...v1.5.7
|
||||||
|
[1.5.6]: https://github.com/taiki-e/install-action/compare/v1.5.5...v1.5.6
|
||||||
|
[1.5.5]: https://github.com/taiki-e/install-action/compare/v1.5.4...v1.5.5
|
||||||
|
[1.5.4]: https://github.com/taiki-e/install-action/compare/v1.5.3...v1.5.4
|
||||||
|
[1.5.3]: https://github.com/taiki-e/install-action/compare/v1.5.2...v1.5.3
|
||||||
|
[1.5.2]: https://github.com/taiki-e/install-action/compare/v1.5.1...v1.5.2
|
||||||
|
[1.5.1]: https://github.com/taiki-e/install-action/compare/v1.5.0...v1.5.1
|
||||||
|
[1.5.0]: https://github.com/taiki-e/install-action/compare/v1.4.2...v1.5.0
|
||||||
|
[1.4.2]: https://github.com/taiki-e/install-action/compare/v1.4.1...v1.4.2
|
||||||
|
[1.4.1]: https://github.com/taiki-e/install-action/compare/v1.4.0...v1.4.1
|
||||||
|
[1.4.0]: https://github.com/taiki-e/install-action/compare/v1.3.13...v1.4.0
|
||||||
|
[1.3.13]: https://github.com/taiki-e/install-action/compare/v1.3.12...v1.3.13
|
||||||
|
[1.3.12]: https://github.com/taiki-e/install-action/compare/v1.3.11...v1.3.12
|
||||||
[1.3.11]: https://github.com/taiki-e/install-action/compare/v1.3.10...v1.3.11
|
[1.3.11]: https://github.com/taiki-e/install-action/compare/v1.3.10...v1.3.11
|
||||||
[1.3.10]: https://github.com/taiki-e/install-action/compare/v1.3.9...v1.3.10
|
[1.3.10]: https://github.com/taiki-e/install-action/compare/v1.3.9...v1.3.10
|
||||||
[1.3.9]: https://github.com/taiki-e/install-action/compare/v1.3.8...v1.3.9
|
[1.3.9]: https://github.com/taiki-e/install-action/compare/v1.3.8...v1.3.9
|
||||||
|
|||||||
37
README.md
37
README.md
@@ -39,7 +39,7 @@ To install a specific version, use `@version` syntax:
|
|||||||
```yaml
|
```yaml
|
||||||
- uses: taiki-e/install-action@v1
|
- uses: taiki-e/install-action@v1
|
||||||
with:
|
with:
|
||||||
tool: cargo-hack@0.5.11
|
tool: cargo-hack@0.5.17
|
||||||
```
|
```
|
||||||
|
|
||||||
To install multiple tools:
|
To install multiple tools:
|
||||||
@@ -66,18 +66,28 @@ https://spdx.org/licenses
|
|||||||
|
|
||||||
| Name | Where binaries will be installed | Where will it be installed from | Supported platform | License |
|
| Name | Where binaries will be installed | Where will it be installed from | Supported platform | License |
|
||||||
| ---- | -------------------------------- | ------------------------------- | ------------------ | ------- |
|
| ---- | -------------------------------- | ------------------------------- | ------------------ | ------- |
|
||||||
| [**cargo-hack**](https://github.com/taiki-e/cargo-hack) | `~/.cargo/bin` | [GitHub Releases](https://github.com/taiki-e/cargo-hack/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/cargo-hack/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-hack/blob/HEAD/LICENSE-MIT) |
|
| [**cargo-hack**](https://github.com/taiki-e/cargo-hack) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/taiki-e/cargo-hack/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/cargo-hack/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-hack/blob/HEAD/LICENSE-MIT) |
|
||||||
| [**cargo-llvm-cov**](https://github.com/taiki-e/cargo-llvm-cov) | `~/.cargo/bin` | [GitHub Releases](https://github.com/taiki-e/cargo-llvm-cov/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/cargo-llvm-cov/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-llvm-cov/blob/HEAD/LICENSE-MIT) |
|
| [**cargo-llvm-cov**](https://github.com/taiki-e/cargo-llvm-cov) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/taiki-e/cargo-llvm-cov/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/cargo-llvm-cov/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-llvm-cov/blob/HEAD/LICENSE-MIT) |
|
||||||
| [**cargo-minimal-versions**](https://github.com/taiki-e/cargo-minimal-versions) | `~/.cargo/bin` | [GitHub Releases](https://github.com/taiki-e/cargo-minimal-versions/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/cargo-minimal-versions/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-minimal-versions/blob/HEAD/LICENSE-MIT) |
|
| [**cargo-minimal-versions**](https://github.com/taiki-e/cargo-minimal-versions) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/taiki-e/cargo-minimal-versions/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/cargo-minimal-versions/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-minimal-versions/blob/HEAD/LICENSE-MIT) |
|
||||||
| [**parse-changelog**](https://github.com/taiki-e/parse-changelog) | `~/.cargo/bin` | [GitHub Releases](https://github.com/taiki-e/parse-changelog/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/parse-changelog/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/parse-changelog/blob/HEAD/LICENSE-MIT) |
|
| [**cargo-udeps**](https://github.com/est31/cargo-udeps) | `$CARGO_HOME/bin` | [GitHub Release](https://github.com/est31/cargo-udeps/releases) | Linux, macOS, Windows | [Apache-2.0 OR MIT](https://github.com/est31/cargo-udeps/blob/master/LICENSE) |
|
||||||
| [**cross**](https://github.com/cross-rs/cross) | `~/.cargo/bin` | [GitHub Releases](https://github.com/cross-rs/cross/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/cross-rs/cross/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/cross-rs/cross/blob/HEAD/LICENSE-MIT) |
|
| [**parse-changelog**](https://github.com/taiki-e/parse-changelog) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/taiki-e/parse-changelog/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/parse-changelog/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/parse-changelog/blob/HEAD/LICENSE-MIT) |
|
||||||
| [**nextest**](https://github.com/nextest-rs/nextest) | `~/.cargo/bin` | [GitHub Releases](https://github.com/nextest-rs/nextest/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/nextest-rs/nextest/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/nextest-rs/nextest/blob/HEAD/LICENSE-MIT) |
|
| [**cargo-binstall**][cargo-binstall] | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/cargo-bins/cargo-binstall/releases) | Linux, macOS, Windows | [GPL-3.0](https://github.com/cargo-bins/cargo-binstall/blob/HEAD/LICENSE.txt) |
|
||||||
| [**shellcheck**](https://www.shellcheck.net) | `/usr/local/bin` | [GitHub Releases](https://github.com/koalaman/shellcheck/releases) | Linux, macOS | [GPL-3.0-or-later](https://github.com/koalaman/shellcheck/blob/HEAD/LICENSE) |
|
| [**cross**](https://github.com/cross-rs/cross) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/cross-rs/cross/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/cross-rs/cross/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/cross-rs/cross/blob/HEAD/LICENSE-MIT) |
|
||||||
| [**shfmt**](https://github.com/mvdan/sh) | `/usr/local/bin` | [GitHub Releases](https://github.com/mvdan/sh/releases) | Linux, macOS | [BSD-3-Clause](https://github.com/mvdan/sh/blob/HEAD/LICENSE) |
|
| [**mdbook**](https://github.com/rust-lang/mdBook) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/rust-lang/mdBook/releases) | Linux, macOS, Windows | [MPL-2.0](https://github.com/rust-lang/mdBook/blob/HEAD/LICENSE) |
|
||||||
|
| [**mdbook-linkcheck**](https://github.com/Michael-F-Bryan/mdbook-linkcheck) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases) | Linux, macOS, Windows | [MIT](https://github.com/Michael-F-Bryan/mdbook-linkcheck/blob/HEAD/LICENSE) |
|
||||||
|
| [**nextest**](https://github.com/nextest-rs/nextest) (alias: `cargo-nextest`) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/nextest-rs/nextest/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/nextest-rs/nextest/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/nextest-rs/nextest/blob/HEAD/LICENSE-MIT) |
|
||||||
|
| [**protoc**](https://github.com/protocolbuffers/protobuf) | `/usr/local/bin` | [GitHub Releases](https://github.com/protocolbuffers/protobuf/releases) | Linux, macOS, Windows | [BSD-3-Clause](https://github.com/protocolbuffers/protobuf/blob/HEAD/LICENSE) |
|
||||||
|
| [**shellcheck**](https://www.shellcheck.net) | `/usr/local/bin` | [GitHub Releases](https://github.com/koalaman/shellcheck/releases) | Linux, macOS, Windows | [GPL-3.0-or-later](https://github.com/koalaman/shellcheck/blob/HEAD/LICENSE) |
|
||||||
|
| [**shfmt**](https://github.com/mvdan/sh) | `/usr/local/bin` | [GitHub Releases](https://github.com/mvdan/sh/releases) | Linux, macOS, Windows | [BSD-3-Clause](https://github.com/mvdan/sh/blob/HEAD/LICENSE) |
|
||||||
| [**valgrind**](https://valgrind.org) | `/snap/bin` | [snap](https://snapcraft.io/install/valgrind/ubuntu) | Linux | [GPL-2.0-or-later](https://valgrind.org/docs/manual/license.gpl.html) |
|
| [**valgrind**](https://valgrind.org) | `/snap/bin` | [snap](https://snapcraft.io/install/valgrind/ubuntu) | Linux | [GPL-2.0-or-later](https://valgrind.org/docs/manual/license.gpl.html) |
|
||||||
| [**wasm-pack**](https://github.com/rustwasm/wasm-pack) | `~/.cargo/bin` | [GitHub Releases](https://github.com/rustwasm/wasm-pack/releases) | Linux, macOS | [Apache-2.0](https://github.com/rustwasm/wasm-pack/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/rustwasm/wasm-pack/blob/HEAD/LICENSE-MIT) |
|
| [**wasm-pack**](https://github.com/rustwasm/wasm-pack) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/rustwasm/wasm-pack/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/rustwasm/wasm-pack/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/rustwasm/wasm-pack/blob/HEAD/LICENSE-MIT) |
|
||||||
| [**wasmtime**](https://github.com/bytecodealliance/wasmtime) | `~/.cargo/bin` | [GitHub Releases](https://github.com/bytecodealliance/wasmtime/releases) | Linux, macOS | [Apache-2.0 WITH LLVM-exception](https://github.com/bytecodealliance/wasmtime/blob/HEAD/LICENSE) |
|
| [**wasmtime**](https://github.com/bytecodealliance/wasmtime) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/bytecodealliance/wasmtime/releases) | Linux, macOS, Windows | [Apache-2.0 WITH LLVM-exception](https://github.com/bytecodealliance/wasmtime/blob/HEAD/LICENSE) |
|
||||||
| [**mdbook**](https://github.com/rust-lang/mdBook) | `~/.cargo/bin` | [GitHub Releases](https://github.com/rust-lang/mdBook/releases) | Linux, macOS | [MPL-2.0](https://github.com/rust-lang/mdBook/blob/HEAD/LICENSE) |
|
|
||||||
|
If `$CARGO_HOME/bin` is not available, Rust-related binaries will be installed to `$HOME/.cargo/bin`.<br>
|
||||||
|
If `$HOME/.cargo/bin` is not available, Rust-related binaries will be installed to `/usr/local/bin`.<br>
|
||||||
|
If `/usr/local/bin` is not available, binaries will be installed to `$HOME/.install-action/bin`.<br>
|
||||||
|
|
||||||
|
If a tool not included in the list above is specified, this action uses [cargo-binstall] as a fallback.
|
||||||
|
|
||||||
<!-- TODO:
|
<!-- TODO:
|
||||||
| [**cmake**](https://cmake.org) | | [GitHub Releases](https://github.com/Kitware/CMake/releases) | Linux, macOS, Windows | [BSD-3-Clause](https://github.com/Kitware/CMake/blob/HEAD/Copyright.txt) |
|
| [**cmake**](https://cmake.org) | | [GitHub Releases](https://github.com/Kitware/CMake/releases) | Linux, macOS, Windows | [BSD-3-Clause](https://github.com/Kitware/CMake/blob/HEAD/Copyright.txt) |
|
||||||
@@ -93,8 +103,11 @@ If you want a higher level of security, consider working on [#1](https://github.
|
|||||||
|
|
||||||
- [create-gh-release-action]: GitHub Action for creating GitHub Releases based on changelog.
|
- [create-gh-release-action]: GitHub Action for creating GitHub Releases based on changelog.
|
||||||
- [upload-rust-binary-action]: GitHub Action for building and uploading Rust binary to GitHub Releases.
|
- [upload-rust-binary-action]: GitHub Action for building and uploading Rust binary to GitHub Releases.
|
||||||
|
- [setup-cross-toolchain-action]: GitHub Action for setup toolchains for cross compilation and cross testing for Rust.
|
||||||
|
|
||||||
|
[cargo-binstall]: https://github.com/cargo-bins/cargo-binstall
|
||||||
[create-gh-release-action]: https://github.com/taiki-e/create-gh-release-action
|
[create-gh-release-action]: https://github.com/taiki-e/create-gh-release-action
|
||||||
|
[setup-cross-toolchain-action]: https://github.com/taiki-e/setup-cross-toolchain-action
|
||||||
[upload-rust-binary-action]: https://github.com/taiki-e/upload-rust-binary-action
|
[upload-rust-binary-action]: https://github.com/taiki-e/upload-rust-binary-action
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
393
main.sh
393
main.sh
@@ -30,6 +30,103 @@ warn() {
|
|||||||
info() {
|
info() {
|
||||||
echo "info: $*"
|
echo "info: $*"
|
||||||
}
|
}
|
||||||
|
download() {
|
||||||
|
local url="$1"
|
||||||
|
local bin_dir="$2"
|
||||||
|
local bin="$3"
|
||||||
|
if [[ "${bin_dir}" == "/usr/"* ]]; then
|
||||||
|
if [[ ! -d "${bin_dir}" ]]; then
|
||||||
|
bin_dir="${HOME}/.install-action/bin"
|
||||||
|
if [[ ! -d "${bin_dir}" ]]; then
|
||||||
|
mkdir -p "${bin_dir}"
|
||||||
|
echo "${bin_dir}" >>"${GITHUB_PATH}"
|
||||||
|
export PATH="${PATH}:${bin_dir}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
local tar_args=()
|
||||||
|
case "${url}" in
|
||||||
|
*.tar.gz | *.tgz) tar_args+=("xzf") ;;
|
||||||
|
*.tar.bz2 | *.tbz2) tar_args+=("xjf") ;;
|
||||||
|
*.tar.xz | *.txz) tar_args+=("xJf") ;;
|
||||||
|
*.zip)
|
||||||
|
mkdir -p .install-action-tmp
|
||||||
|
(
|
||||||
|
cd .install-action-tmp
|
||||||
|
info "downloading ${url}"
|
||||||
|
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" -o tmp.zip
|
||||||
|
unzip tmp.zip
|
||||||
|
mv "${bin}" "${bin_dir}/"
|
||||||
|
)
|
||||||
|
rm -rf .install-action-tmp
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
*) bail "unrecognized archive format '${url}' for ${tool}" ;;
|
||||||
|
esac
|
||||||
|
tar_args+=("-")
|
||||||
|
local components
|
||||||
|
components=$(tr <<<"${bin}" -cd '/' | wc -c)
|
||||||
|
if [[ "${components}" != "0" ]]; then
|
||||||
|
tar_args+=(--strip-components "${components}")
|
||||||
|
fi
|
||||||
|
info "downloading ${url}"
|
||||||
|
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
||||||
|
| tar "${tar_args[@]}" -C "${bin_dir}" "${bin}"
|
||||||
|
}
|
||||||
|
host_triple() {
|
||||||
|
if [[ -z "${host:-}" ]]; then
|
||||||
|
host="$(rustc -vV | grep host | cut -c 7-)"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
install_cargo_binstall() {
|
||||||
|
if [[ ! -f "${cargo_bin}/cargo-binstall" ]]; then
|
||||||
|
info "installing cargo-binstall"
|
||||||
|
|
||||||
|
host_triple
|
||||||
|
base_url=https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall
|
||||||
|
case "${host}" in
|
||||||
|
x86_64-unknown-linux-gnu) url="${base_url}-x86_64-unknown-linux-musl.tgz" ;;
|
||||||
|
x86_64-unknown-linux-musl) url="${base_url}-x86_64-unknown-linux-musl.tgz" ;;
|
||||||
|
|
||||||
|
armv7-unknown-linux-gnueabihf) url="${base_url}-armv7-unknown-linux-musleabihf.tgz" ;;
|
||||||
|
armv7-unknown-linux-musleabihf) url="${base_url}-armv7-unknown-linux-musleabihf.tgz" ;;
|
||||||
|
|
||||||
|
aarch64-unknown-linux-gnu) url="${base_url}-aarch64-unknown-linux-musl.tgz" ;;
|
||||||
|
aarch64-unknown-linux-musl) url="${base_url}-aarch64-unknown-linux-musl.tgz" ;;
|
||||||
|
|
||||||
|
x86_64-pc-windows-gnu) url="${base_url}-x86_64-pc-windows-msvc.zip" ;;
|
||||||
|
|
||||||
|
x86_64-apple-darwin | aarch64-apple-darwin | x86_64-pc-windows-msvc)
|
||||||
|
url="${base_url}-${host}.zip"
|
||||||
|
;;
|
||||||
|
|
||||||
|
*) bail "unsupported target '${host}' for cargo-binstall" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
download "${url}" "${cargo_bin}" "cargo-binstall${exe}"
|
||||||
|
info "cargo-binstall installed at $(type -P "cargo-binstall${exe}")"
|
||||||
|
x cargo binstall -V
|
||||||
|
else
|
||||||
|
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall, upgrading"
|
||||||
|
cargo binstall --secure --no-confirm --version '>=0.12.0' cargo-binstall
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
cargo_binstall() {
|
||||||
|
local tool="$1"
|
||||||
|
local version="$2"
|
||||||
|
|
||||||
|
info "install-action does not support ${tool}, fallback to cargo-binstall"
|
||||||
|
|
||||||
|
install_cargo_binstall
|
||||||
|
|
||||||
|
# --secure mode enforce downloads over secure transports only.
|
||||||
|
# As a result, http will be disabled, and it will also set
|
||||||
|
# min tls version to be 1.2
|
||||||
|
case "${version}" in
|
||||||
|
latest) cargo binstall --force --secure --no-confirm "${tool}" ;;
|
||||||
|
*) cargo binstall --force --secure --no-confirm --version "${version}" "${tool}" ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
if [[ $# -gt 0 ]]; then
|
if [[ $# -gt 0 ]]; then
|
||||||
bail "invalid argument '$1'"
|
bail "invalid argument '$1'"
|
||||||
@@ -39,12 +136,21 @@ export DEBIAN_FRONTEND=noninteractive
|
|||||||
|
|
||||||
# Inputs
|
# Inputs
|
||||||
tool="${INPUT_TOOL:-}"
|
tool="${INPUT_TOOL:-}"
|
||||||
|
|
||||||
tools=()
|
tools=()
|
||||||
if [[ -n "${tool}" ]]; then
|
if [[ -n "${tool}" ]]; then
|
||||||
while read -rd,; do tools+=("${REPLY}"); done <<<"${tool},"
|
while read -rd,; do tools+=("${REPLY}"); done <<<"${tool},"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exe=""
|
||||||
|
case "${OSTYPE}" in
|
||||||
|
cygwin* | msys*) exe=".exe" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
cargo_bin="${CARGO_HOME:-"${HOME}/.cargo"}/bin"
|
||||||
|
if [[ ! -d "${cargo_bin}" ]]; then
|
||||||
|
cargo_bin=/usr/local/bin
|
||||||
|
fi
|
||||||
|
|
||||||
for tool in "${tools[@]}"; do
|
for tool in "${tools[@]}"; do
|
||||||
if [[ "${tool}" == *"@"* ]]; then
|
if [[ "${tool}" == *"@"* ]]; then
|
||||||
version="${tool#*@}"
|
version="${tool#*@}"
|
||||||
@@ -52,39 +158,67 @@ for tool in "${tools[@]}"; do
|
|||||||
version="latest"
|
version="latest"
|
||||||
fi
|
fi
|
||||||
tool="${tool%@*}"
|
tool="${tool%@*}"
|
||||||
|
bin="${tool}${exe}"
|
||||||
info "installing ${tool}@${version}"
|
info "installing ${tool}@${version}"
|
||||||
case "${tool}" in
|
case "${tool}" in
|
||||||
cargo-hack | cargo-llvm-cov | cargo-minimal-versions | parse-changelog)
|
cargo-hack | cargo-llvm-cov | cargo-minimal-versions | parse-changelog)
|
||||||
case "${tool}" in
|
case "${tool}" in
|
||||||
# https://github.com/taiki-e/cargo-hack/releases
|
# https://github.com/taiki-e/cargo-hack/releases
|
||||||
cargo-hack) latest_version="0.5.13" ;;
|
cargo-hack) latest_version="0.5.17" ;;
|
||||||
# https://github.com/taiki-e/cargo-llvm-cov/releases
|
# https://github.com/taiki-e/cargo-llvm-cov/releases
|
||||||
cargo-llvm-cov) latest_version="0.4.3" ;;
|
cargo-llvm-cov) latest_version="0.4.14" ;;
|
||||||
# https://github.com/taiki-e/cargo-minimal-versions/releases
|
# https://github.com/taiki-e/cargo-minimal-versions/releases
|
||||||
cargo-minimal-versions) latest_version="0.1.3" ;;
|
cargo-minimal-versions) latest_version="0.1.5" ;;
|
||||||
# https://github.com/taiki-e/parse-changelog/releases
|
# https://github.com/taiki-e/parse-changelog/releases
|
||||||
parse-changelog) latest_version="0.4.7" ;;
|
parse-changelog) latest_version="0.5.0" ;;
|
||||||
*) exit 1 ;;
|
*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
repo="taiki-e/${tool}"
|
repo="taiki-e/${tool}"
|
||||||
|
case "${version}" in
|
||||||
|
latest) version="${latest_version}" ;;
|
||||||
|
esac
|
||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux*) target="x86_64-unknown-linux-musl" ;;
|
linux*) target="x86_64-unknown-linux-musl" ;;
|
||||||
darwin*) target="x86_64-apple-darwin" ;;
|
darwin*) target="x86_64-apple-darwin" ;;
|
||||||
cygwin* | msys*) target="x86_64-pc-windows-msvc" ;;
|
cygwin* | msys*) target="x86_64-pc-windows-msvc" ;;
|
||||||
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
esac
|
esac
|
||||||
|
url="https://github.com/${repo}/releases/download/v${version}/${tool}-${target}.tar.gz"
|
||||||
|
download "${url}" "${cargo_bin}" "${tool}${exe}"
|
||||||
|
;;
|
||||||
|
cargo-udeps)
|
||||||
|
# https://github.com/est31/cargo-udeps/releases
|
||||||
|
latest_version="0.1.32"
|
||||||
|
repo="est31/${tool}"
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest) version="${latest_version}" ;;
|
latest) version="${latest_version}" ;;
|
||||||
esac
|
esac
|
||||||
url="https://github.com/${repo}/releases/download/v${version}/${tool}-${target}.tar.gz"
|
base_url="https://github.com/${repo}/releases/download/v${version}/${tool}-v${version}"
|
||||||
# shellcheck disable=SC2086
|
case "${OSTYPE}" in
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
linux*)
|
||||||
| tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin
|
target="x86_64-unknown-linux-gnu"
|
||||||
|
url="${base_url}-${target}.tar.gz"
|
||||||
|
;;
|
||||||
|
darwin*)
|
||||||
|
target="x86_64-apple-darwin"
|
||||||
|
url="${base_url}-${target}.tar.gz"
|
||||||
|
;;
|
||||||
|
cygwin* | msys*)
|
||||||
|
target="x86_64-pc-windows-msvc"
|
||||||
|
url="${base_url}-${target}.zip"
|
||||||
|
;;
|
||||||
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
|
esac
|
||||||
|
# leading `./` is required for cargo-udeps to work
|
||||||
|
download "${url}" "${cargo_bin}" "./${tool}-v${version}-${target}/${tool}${exe}"
|
||||||
;;
|
;;
|
||||||
cross)
|
cross)
|
||||||
# https://github.com/cross-rs/cross/releases
|
# https://github.com/cross-rs/cross/releases
|
||||||
latest_version="0.2.1"
|
latest_version="0.2.4"
|
||||||
repo="cross-rs/cross"
|
repo="cross-rs/${tool}"
|
||||||
|
case "${version}" in
|
||||||
|
latest) version="${latest_version}" ;;
|
||||||
|
esac
|
||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux*) target="x86_64-unknown-linux-musl" ;;
|
linux*) target="x86_64-unknown-linux-musl" ;;
|
||||||
darwin*) target="x86_64-apple-darwin" ;;
|
darwin*) target="x86_64-apple-darwin" ;;
|
||||||
@@ -92,74 +226,143 @@ for tool in "${tools[@]}"; do
|
|||||||
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
esac
|
esac
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest) version="${latest_version}" ;;
|
0.1.* | 0.2.[0-1]) url="https://github.com/${repo}/releases/download/v${version}/${tool}-v${version}-${target}.tar.gz" ;;
|
||||||
|
*) url="https://github.com/${repo}/releases/download/v${version}/${tool}-${target}.tar.gz" ;;
|
||||||
esac
|
esac
|
||||||
url="https://github.com/${repo}/releases/download/v${version}/cross-v${version}-${target}.tar.gz"
|
download "${url}" "${cargo_bin}" "${tool}${exe}"
|
||||||
# shellcheck disable=SC2086
|
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
|
||||||
| tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin
|
|
||||||
;;
|
;;
|
||||||
nextest)
|
nextest | cargo-nextest)
|
||||||
|
bin="cargo-nextest"
|
||||||
# https://nexte.st/book/pre-built-binaries.html
|
# https://nexte.st/book/pre-built-binaries.html
|
||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux*) url="https://get.nexte.st/${version}/linux" ;;
|
linux*)
|
||||||
|
host_triple
|
||||||
|
case "${host}" in
|
||||||
|
*-linux-gnu*) url="https://get.nexte.st/${version}/linux" ;;
|
||||||
|
*) url="https://get.nexte.st/${version}/linux-musl" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
darwin*) url="https://get.nexte.st/${version}/mac" ;;
|
darwin*) url="https://get.nexte.st/${version}/mac" ;;
|
||||||
cygwin* | msys*) url="https://get.nexte.st/${version}/windows-tar" ;;
|
cygwin* | msys*) url="https://get.nexte.st/${version}/windows-tar" ;;
|
||||||
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
esac
|
esac
|
||||||
# shellcheck disable=SC2086
|
info "downloading ${url}"
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
||||||
| tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin
|
| tar xzf - -C "${cargo_bin}"
|
||||||
|
;;
|
||||||
|
protoc)
|
||||||
|
# https://github.com/protocolbuffers/protobuf/releases
|
||||||
|
latest_version="3.21.5"
|
||||||
|
repo="protocolbuffers/protobuf"
|
||||||
|
case "${version}" in
|
||||||
|
latest) version="${latest_version}" ;;
|
||||||
|
esac
|
||||||
|
miner_patch_version="${version#*.}"
|
||||||
|
base_url="https://github.com/${repo}/releases/download/v${miner_patch_version}/protoc-${miner_patch_version}"
|
||||||
|
bin_dir="/usr/local/bin"
|
||||||
|
include_dir="/usr/local/include"
|
||||||
|
case "${OSTYPE}" in
|
||||||
|
linux*) url="${base_url}-linux-x86_64.zip" ;;
|
||||||
|
darwin*) url="${base_url}-osx-x86_64.zip" ;;
|
||||||
|
cygwin* | msys*)
|
||||||
|
url="${base_url}-win64.zip"
|
||||||
|
bin_dir="${HOME}/.install-action/bin"
|
||||||
|
include_dir="${HOME}/.install-action/include"
|
||||||
|
if [[ ! -d "${bin_dir}" ]]; then
|
||||||
|
mkdir -p "${bin_dir}"
|
||||||
|
mkdir -p "${include_dir}"
|
||||||
|
echo "${bin_dir}" >>"${GITHUB_PATH}"
|
||||||
|
export PATH="${PATH}:${bin_dir}"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
|
esac
|
||||||
|
mkdir -p .install-action-tmp
|
||||||
|
(
|
||||||
|
cd .install-action-tmp
|
||||||
|
info "downloading ${url}"
|
||||||
|
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" -o tmp.zip
|
||||||
|
unzip tmp.zip
|
||||||
|
mv "bin/protoc${exe}" "${bin_dir}/"
|
||||||
|
mkdir -p "${include_dir}/"
|
||||||
|
case "${OSTYPE}" in
|
||||||
|
linux* | darwin*) sudo cp -r include/. "${include_dir}/" ;;
|
||||||
|
cygwin* | msys*)
|
||||||
|
cp -r include/. "${include_dir}/"
|
||||||
|
bin_dir=$(sed <<<"${bin_dir}" 's/^\/c\//C:\\/')
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
if [[ -z "${PROTOC:-}" ]]; then
|
||||||
|
info "setting PROTOC environment variable"
|
||||||
|
echo "PROTOC=${bin_dir}/protoc${exe}" >>"${GITHUB_ENV}"
|
||||||
|
fi
|
||||||
|
)
|
||||||
|
rm -rf .install-action-tmp
|
||||||
;;
|
;;
|
||||||
shellcheck)
|
shellcheck)
|
||||||
# https://github.com/koalaman/shellcheck/releases
|
# https://github.com/koalaman/shellcheck/releases
|
||||||
latest_version="0.8.0"
|
latest_version="0.8.0"
|
||||||
repo="koalaman/shellcheck"
|
repo="koalaman/${tool}"
|
||||||
|
case "${version}" in
|
||||||
|
latest) version="${latest_version}" ;;
|
||||||
|
esac
|
||||||
|
base_url="https://github.com/${repo}/releases/download/v${version}/${tool}-v${version}"
|
||||||
|
bin="${tool}-v${version}/${tool}${exe}"
|
||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux*)
|
linux*)
|
||||||
if type -P shellcheck &>/dev/null; then
|
if type -P shellcheck &>/dev/null; then
|
||||||
sudo apt-get -qq -o Dpkg::Use-Pty=0 remove -y shellcheck
|
sudo apt-get -qq -o Dpkg::Use-Pty=0 remove -y shellcheck
|
||||||
fi
|
fi
|
||||||
target="linux"
|
url="${base_url}.linux.x86_64.tar.xz"
|
||||||
|
;;
|
||||||
|
darwin*) url="${base_url}.darwin.x86_64.tar.xz" ;;
|
||||||
|
cygwin* | msys*)
|
||||||
|
url="${base_url}.zip"
|
||||||
|
bin="${tool}${exe}"
|
||||||
;;
|
;;
|
||||||
darwin*) target="darwin" ;;
|
|
||||||
cygwin* | msys*) bail "${tool} for windows is not supported yet by this action" ;;
|
|
||||||
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
esac
|
esac
|
||||||
case "${version}" in
|
download "${url}" /usr/local/bin "${bin}"
|
||||||
latest) version="${latest_version}" ;;
|
|
||||||
esac
|
|
||||||
url="https://github.com/${repo}/releases/download/v${version}/shellcheck-v${version}.${target}.x86_64.tar.xz"
|
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
|
||||||
| tar xJf - --strip-components 1 -C /usr/local/bin "shellcheck-v${version}/shellcheck"
|
|
||||||
;;
|
;;
|
||||||
shfmt)
|
shfmt)
|
||||||
# https://github.com/mvdan/sh/releases
|
# https://github.com/mvdan/sh/releases
|
||||||
latest_version="3.5.0"
|
latest_version="3.5.1"
|
||||||
repo="mvdan/sh"
|
repo="mvdan/sh"
|
||||||
case "${OSTYPE}" in
|
|
||||||
linux*) target="linux_amd64" ;;
|
|
||||||
darwin*) target="darwin_amd64" ;;
|
|
||||||
cygwin* | msys*) bail "${tool} for windows is not supported yet by this action" ;;
|
|
||||||
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
|
||||||
esac
|
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest) version="${latest_version}" ;;
|
latest) version="${latest_version}" ;;
|
||||||
esac
|
esac
|
||||||
url="https://github.com/${repo}/releases/download/v${version}/shfmt_v${version}_${target}"
|
bin_dir="/usr/local/bin"
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused -o /usr/local/bin/shfmt "${url}"
|
case "${OSTYPE}" in
|
||||||
chmod +x /usr/local/bin/shfmt
|
linux*) target="linux_amd64" ;;
|
||||||
|
darwin*) target="darwin_amd64" ;;
|
||||||
|
cygwin* | msys*)
|
||||||
|
target="windows_amd64"
|
||||||
|
bin_dir="${HOME}/.install-action/bin"
|
||||||
|
if [[ ! -d "${bin_dir}" ]]; then
|
||||||
|
mkdir -p "${bin_dir}"
|
||||||
|
echo "${bin_dir}" >>"${GITHUB_PATH}"
|
||||||
|
export PATH="${PATH}:${bin_dir}"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
|
esac
|
||||||
|
url="https://github.com/${repo}/releases/download/v${version}/${tool}_v${version}_${target}${exe}"
|
||||||
|
info "downloading ${url}"
|
||||||
|
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused -o "${bin_dir}/${tool}${exe}" "${url}"
|
||||||
|
case "${OSTYPE}" in
|
||||||
|
linux* | darwin*) chmod +x "${bin_dir}/${tool}${exe}" ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
valgrind)
|
valgrind)
|
||||||
|
case "${version}" in
|
||||||
|
latest) ;;
|
||||||
|
*) warn "specifying the version of ${tool} is not supported yet by this action" ;;
|
||||||
|
esac
|
||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux*) ;;
|
linux*) ;;
|
||||||
darwin* | cygwin* | msys*) bail "${tool} for non-linux is not supported yet by this action" ;;
|
darwin* | cygwin* | msys*) bail "${tool} for non-linux is not supported yet by this action" ;;
|
||||||
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
esac
|
esac
|
||||||
case "${version}" in
|
|
||||||
latest) ;;
|
|
||||||
*) warn "specifying the version of ${tool} is not supported yet by this action" ;;
|
|
||||||
esac
|
|
||||||
retry sudo apt-get -o Acquire::Retries=10 -qq update
|
retry sudo apt-get -o Acquire::Retries=10 -qq update
|
||||||
# libc6-dbg is needed to run Valgrind
|
# libc6-dbg is needed to run Valgrind
|
||||||
retry sudo apt-get -o Acquire::Retries=10 -qq -o Dpkg::Use-Pty=0 install -y libc6-dbg
|
retry sudo apt-get -o Acquire::Retries=10 -qq -o Dpkg::Use-Pty=0 install -y libc6-dbg
|
||||||
@@ -168,57 +371,95 @@ for tool in "${tools[@]}"; do
|
|||||||
retry sudo snap install valgrind --classic
|
retry sudo snap install valgrind --classic
|
||||||
;;
|
;;
|
||||||
wasm-pack)
|
wasm-pack)
|
||||||
# https://rustwasm.github.io/wasm-pack/installer
|
# https://github.com/rustwasm/wasm-pack/releases
|
||||||
|
latest_version="0.10.3"
|
||||||
|
repo="rustwasm/${tool}"
|
||||||
|
case "${version}" in
|
||||||
|
latest) version="${latest_version}" ;;
|
||||||
|
esac
|
||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux* | darwin*) ;;
|
linux*) target="x86_64-unknown-linux-musl" ;;
|
||||||
cygwin* | msys*) bail "${tool} for windows is not supported yet by this action" ;;
|
darwin*) target="x86_64-apple-darwin" ;;
|
||||||
|
cygwin* | msys*) target="x86_64-pc-windows-msvc" ;;
|
||||||
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
esac
|
esac
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused https://rustwasm.github.io/wasm-pack/installer/init.sh | sh
|
url="https://github.com/${repo}/releases/download/v${version}/${tool}-v${version}-${target}.tar.gz"
|
||||||
|
download "${url}" "${cargo_bin}" "${tool}-v${version}-${target}/${tool}${exe}"
|
||||||
;;
|
;;
|
||||||
wasmtime)
|
wasmtime)
|
||||||
# https://github.com/bytecodealliance/wasmtime/releases
|
# https://github.com/bytecodealliance/wasmtime/releases
|
||||||
latest_version="0.37.0"
|
latest_version="0.40.0"
|
||||||
repo="bytecodealliance/wasmtime"
|
repo="bytecodealliance/${tool}"
|
||||||
case "${OSTYPE}" in
|
|
||||||
linux*) target="x86_64-linux" ;;
|
|
||||||
darwin*) target="x86_64-macos" ;;
|
|
||||||
cygwin* | msys*) bail "${tool} for windows is not supported yet by this action" ;;
|
|
||||||
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
|
||||||
esac
|
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest) version="${latest_version}" ;;
|
latest) version="${latest_version}" ;;
|
||||||
esac
|
esac
|
||||||
url="https://github.com/bytecodealliance/wasmtime/releases/download/v${version}/wasmtime-v${version}-${target}.tar.xz"
|
base_url="https://github.com/${repo}/releases/download/v${version}/${tool}-v${version}"
|
||||||
# shellcheck disable=SC2086
|
case "${OSTYPE}" in
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
linux*)
|
||||||
| tar xJf - --strip-components 1 -C ${CARGO_HOME:-~/.cargo}/bin "wasmtime-v${version}-${target}/wasmtime"
|
target="x86_64-linux"
|
||||||
|
url="${base_url}-${target}.tar.xz"
|
||||||
|
;;
|
||||||
|
darwin*)
|
||||||
|
target="x86_64-macos"
|
||||||
|
url="${base_url}-${target}.tar.xz"
|
||||||
|
;;
|
||||||
|
cygwin* | msys*)
|
||||||
|
target="x86_64-windows"
|
||||||
|
url="${base_url}-${target}.zip"
|
||||||
|
;;
|
||||||
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
|
esac
|
||||||
|
download "${url}" "${cargo_bin}" "${tool}-v${version}-${target}/${tool}${exe}"
|
||||||
;;
|
;;
|
||||||
mdbook)
|
mdbook)
|
||||||
# https://github.com/rust-lang/mdBook/releases
|
# https://github.com/rust-lang/mdBook/releases
|
||||||
latest_version="0.4.18"
|
latest_version="0.4.21"
|
||||||
repo="rust-lang/mdBook"
|
repo="rust-lang/mdBook"
|
||||||
case "${OSTYPE}" in
|
|
||||||
linux*) target="x86_64-unknown-linux-gnu" ;;
|
|
||||||
darwin*) target="x86_64-apple-darwin" ;;
|
|
||||||
# TODO: mdbook has windows binaries, but they use `.zip` and not `.tar.gz`.
|
|
||||||
cygwin* | msys*) bail "${tool} for windows is not supported yet by this action" ;;
|
|
||||||
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
|
||||||
esac
|
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest) version="${latest_version}" ;;
|
latest) version="${latest_version}" ;;
|
||||||
esac
|
esac
|
||||||
url="https://github.com/${repo}/releases/download/v${version}/${tool}-v${version}-${target}.tar.gz"
|
base_url="https://github.com/${repo}/releases/download/v${version}/${tool}-v${version}"
|
||||||
# shellcheck disable=SC2086
|
case "${OSTYPE}" in
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
linux*) url="${base_url}-x86_64-unknown-linux-gnu.tar.gz" ;;
|
||||||
| tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin
|
darwin*) url="${base_url}-x86_64-apple-darwin.tar.gz" ;;
|
||||||
|
cygwin* | msys*) url="${base_url}-x86_64-pc-windows-msvc.zip" ;;
|
||||||
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
|
esac
|
||||||
|
download "${url}" "${cargo_bin}" "${tool}${exe}"
|
||||||
|
;;
|
||||||
|
mdbook-linkcheck)
|
||||||
|
# https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases
|
||||||
|
latest_version="0.7.6"
|
||||||
|
repo="Michael-F-Bryan/${tool}"
|
||||||
|
case "${version}" in
|
||||||
|
latest) version="${latest_version}" ;;
|
||||||
|
esac
|
||||||
|
case "${OSTYPE}" in
|
||||||
|
linux*) target="x86_64-unknown-linux-gnu" ;;
|
||||||
|
darwin*) target="x86_64-apple-darwin" ;;
|
||||||
|
cygwin* | msys*) target="x86_64-pc-windows-msvc" ;;
|
||||||
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
|
esac
|
||||||
|
url="https://github.com/${repo}/releases/download/v${version}/${tool}.${target}.zip"
|
||||||
|
download "${url}" "${cargo_bin}" "${tool}${exe}"
|
||||||
|
case "${OSTYPE}" in
|
||||||
|
linux* | darwin*) chmod +x "${cargo_bin}/${tool}${exe}" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
cargo-binstall)
|
||||||
|
install_cargo_binstall
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
cargo_binstall "${tool}" "${version}"
|
||||||
|
continue
|
||||||
;;
|
;;
|
||||||
*) bail "unsupported tool '${tool}'" ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
info "${tool} installed at $(type -P "${tool}")"
|
info "${tool} installed at $(type -P "${bin}")"
|
||||||
case "${tool}" in
|
case "${bin}" in
|
||||||
cargo-* | nextest) x cargo "${tool#cargo-}" --version ;;
|
"cargo-udeps${exe}") x cargo udeps --help | head -1 ;; # cargo-udeps v0.1.30 does not support --version option
|
||||||
|
cargo-*) x cargo "${tool#cargo-}" --version ;;
|
||||||
*) x "${tool}" --version ;;
|
*) x "${tool}" --version ;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ fi
|
|||||||
tags=$(git --no-pager tag)
|
tags=$(git --no-pager tag)
|
||||||
if [[ -n "${tags}" ]]; then
|
if [[ -n "${tags}" ]]; then
|
||||||
# Make sure the same release does not exist in CHANGELOG.md.
|
# Make sure the same release does not exist in CHANGELOG.md.
|
||||||
release_date=$(date --utc '+%Y-%m-%d')
|
release_date=$(date -u '+%Y-%m-%d')
|
||||||
if grep -Eq "^## \\[${version//./\\.}\\] - ${release_date}$" CHANGELOG.md; then
|
if grep -Eq "^## \\[${version//./\\.}\\] - ${release_date}$" CHANGELOG.md; then
|
||||||
bail "release ${version} already exist in CHANGELOG.md"
|
bail "release ${version} already exist in CHANGELOG.md"
|
||||||
fi
|
fi
|
||||||
@@ -80,15 +80,20 @@ tools=(
|
|||||||
cargo-hack
|
cargo-hack
|
||||||
cargo-llvm-cov
|
cargo-llvm-cov
|
||||||
cargo-minimal-versions
|
cargo-minimal-versions
|
||||||
|
cargo-udeps
|
||||||
parse-changelog
|
parse-changelog
|
||||||
|
cargo-binstall
|
||||||
cross
|
cross
|
||||||
|
mdbook
|
||||||
|
mdbook-linkcheck
|
||||||
|
protoc
|
||||||
nextest
|
nextest
|
||||||
|
cargo-nextest
|
||||||
shellcheck
|
shellcheck
|
||||||
shfmt
|
shfmt
|
||||||
valgrind
|
valgrind
|
||||||
wasm-pack
|
wasm-pack
|
||||||
wasmtime
|
wasmtime
|
||||||
mdbook
|
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
@@ -98,16 +103,16 @@ tools=(
|
|||||||
git push origin main
|
git push origin main
|
||||||
git push origin --tags
|
git push origin --tags
|
||||||
|
|
||||||
version_tag="v${version%%.*}"
|
major_version_tag="v${version%%.*}"
|
||||||
git checkout -b "${version_tag}"
|
git checkout -b "${major_version_tag}"
|
||||||
git push origin refs/heads/"${version_tag}"
|
git push origin refs/heads/"${major_version_tag}"
|
||||||
if git --no-pager tag | grep -Eq "^${version_tag}$"; then
|
if git --no-pager tag | grep -Eq "^${major_version_tag}$"; then
|
||||||
git tag -d "${version_tag}"
|
git tag -d "${major_version_tag}"
|
||||||
git push --delete origin refs/tags/"${version_tag}"
|
git push --delete origin refs/tags/"${major_version_tag}"
|
||||||
fi
|
fi
|
||||||
git tag "${version_tag}"
|
git tag "${major_version_tag}"
|
||||||
git checkout main
|
git checkout main
|
||||||
git branch -d "${version_tag}"
|
git branch -d "${major_version_tag}"
|
||||||
)
|
)
|
||||||
|
|
||||||
for tool in "${tools[@]}"; do
|
for tool in "${tools[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user