mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-12 15:30:20 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c28a9b2f8c | ||
|
|
d334ea4167 | ||
|
|
535250de6e | ||
|
|
c5927f82cd | ||
|
|
f06ff66739 |
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -28,7 +28,9 @@ jobs:
|
|||||||
tool:
|
tool:
|
||||||
# Note: Specifying the version of valgrind and wasm-pack is not supported.
|
# Note: Specifying the version of valgrind and wasm-pack is not supported.
|
||||||
- cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,valgrind,wasm-pack,wasmtime
|
- cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,valgrind,wasm-pack,wasmtime
|
||||||
- cargo-hack@0.5.12,cargo-llvm-cov@0.2.3,cargo-minimal-versions@0.1.3,parse-changelog@0.4.7,cross@0.2.1,shellcheck@0.8.0,shfmt@3.4.3,wasmtime@0.35.1
|
- cargo-hack@0.5.12,cargo-llvm-cov@0.2.4,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.4.3,wasmtime@0.35.1
|
||||||
|
# Nextest supports basic version ranges as well
|
||||||
|
- nextest@0.9
|
||||||
include:
|
include:
|
||||||
- os: macos-10.15
|
- os: macos-10.15
|
||||||
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,wasm-pack,wasmtime
|
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,wasm-pack,wasmtime
|
||||||
|
|||||||
12
CHANGELOG.md
12
CHANGELOG.md
@@ -10,6 +10,14 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.2.2] - 2022-03-18
|
||||||
|
|
||||||
|
- Support specifying the version of `nextest`. ([#2](https://github.com/taiki-e/install-action/pull/3), thanks @sunshowers)
|
||||||
|
|
||||||
|
## [1.2.1] - 2022-03-18
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.2.4.
|
||||||
|
|
||||||
## [1.2.0] - 2022-03-18
|
## [1.2.0] - 2022-03-18
|
||||||
|
|
||||||
- Support `nextest`.
|
- Support `nextest`.
|
||||||
@@ -74,7 +82,9 @@ 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.2.0...HEAD
|
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.2.2...HEAD
|
||||||
|
[1.2.2]: https://github.com/taiki-e/install-action/compare/v1.2.1...v1.2.2
|
||||||
|
[1.2.1]: https://github.com/taiki-e/install-action/compare/v1.2.0...v1.2.1
|
||||||
[1.2.0]: https://github.com/taiki-e/install-action/compare/v1.1.9...v1.2.0
|
[1.2.0]: https://github.com/taiki-e/install-action/compare/v1.1.9...v1.2.0
|
||||||
[1.1.9]: https://github.com/taiki-e/install-action/compare/v1.1.8...v1.1.9
|
[1.1.9]: https://github.com/taiki-e/install-action/compare/v1.1.8...v1.1.9
|
||||||
[1.1.8]: https://github.com/taiki-e/install-action/compare/v1.1.7...v1.1.8
|
[1.1.8]: https://github.com/taiki-e/install-action/compare/v1.1.7...v1.1.8
|
||||||
|
|||||||
12
main.sh
12
main.sh
@@ -59,7 +59,7 @@ for tool in "${tools[@]}"; do
|
|||||||
# https://github.com/taiki-e/cargo-hack/releases
|
# https://github.com/taiki-e/cargo-hack/releases
|
||||||
cargo-hack) latest_version="0.5.12" ;;
|
cargo-hack) latest_version="0.5.12" ;;
|
||||||
# https://github.com/taiki-e/cargo-llvm-cov/releases
|
# https://github.com/taiki-e/cargo-llvm-cov/releases
|
||||||
cargo-llvm-cov) latest_version="0.2.3" ;;
|
cargo-llvm-cov) latest_version="0.2.4" ;;
|
||||||
# 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.3" ;;
|
||||||
# https://github.com/taiki-e/parse-changelog/releases
|
# https://github.com/taiki-e/parse-changelog/releases
|
||||||
@@ -102,15 +102,11 @@ for tool in "${tools[@]}"; do
|
|||||||
nextest)
|
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/latest/linux" ;;
|
linux*) url="https://get.nexte.st/${version}/linux" ;;
|
||||||
darwin*) url="https://get.nexte.st/latest/mac" ;;
|
darwin*) url="https://get.nexte.st/${version}/mac" ;;
|
||||||
cygwin* | msys*) url="https://get.nexte.st/latest/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
|
||||||
case "${version}" in
|
|
||||||
latest) ;;
|
|
||||||
*) warn "specifying the version of ${tool} is not supported yet by this action" ;;
|
|
||||||
esac
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
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_HOME:-~/.cargo}/bin
|
||||||
|
|||||||
@@ -66,6 +66,10 @@ echo "============== CHANGELOG =============="
|
|||||||
parse-changelog CHANGELOG.md "${version}"
|
parse-changelog CHANGELOG.md "${version}"
|
||||||
echo "======================================="
|
echo "======================================="
|
||||||
|
|
||||||
|
if ! git branch | grep -q '\* main'; then
|
||||||
|
bail "current branch is not 'main'"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -n "${tags}" ]]; then
|
if [[ -n "${tags}" ]]; then
|
||||||
# Create a release commit.
|
# Create a release commit.
|
||||||
git add CHANGELOG.md
|
git add CHANGELOG.md
|
||||||
@@ -89,8 +93,8 @@ tools=(
|
|||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
git push origin main
|
|
||||||
git tag "${tag}"
|
git tag "${tag}"
|
||||||
|
git push origin main
|
||||||
git push origin --tags
|
git push origin --tags
|
||||||
|
|
||||||
version_tag="v${version%%.*}"
|
version_tag="v${version%%.*}"
|
||||||
|
|||||||
Reference in New Issue
Block a user