Compare commits

...

16 Commits

Author SHA1 Message Date
Taiki Endo
977df53448 Release 1.3.2 2022-04-16 11:15:36 +09:00
Taiki Endo
c2b3577a83 Update mdbook and wasmtime 2022-04-16 11:14:16 +09:00
Taiki Endo
18725c2474 Release 1.3.1 2022-04-08 19:59:34 +09:00
Taiki Endo
e28740909a Update CI config 2022-04-08 19:59:07 +09:00
Taiki Endo
9da79e8635 Update cargo-llvm-cov to 0.3.0 2022-04-08 19:57:41 +09:00
Taiki Endo
6e040510bb Fix changelog 2022-04-04 21:52:44 +09:00
Taiki Endo
35203641a6 Release 1.3.0 2022-04-04 21:49:48 +09:00
Taiki Endo
22a596fc5d Update changelog 2022-04-04 21:49:36 +09:00
Taiki Endo
ceb63b7192 Revert format change 2022-04-04 21:03:25 +09:00
Thom Chiovoloni
7718ce3390 Don't test mdbook on ubuntu 18.04 in CI 2022-04-04 21:03:25 +09:00
Thom Chiovoloni
33b9c363cc Add support for mdbook 2022-04-04 21:03:25 +09:00
Taiki Endo
c28a9b2f8c Release 1.2.2 2022-03-19 02:27:31 +09:00
Taiki Endo
d334ea4167 Update changelog 2022-03-19 02:27:25 +09:00
Rain
535250de6e for nextest action, use version in URL 2022-03-19 02:22:37 +09:00
Taiki Endo
c5927f82cd Release 1.2.1 2022-03-19 00:50:40 +09:00
Taiki Endo
f06ff66739 Update cargo-llvm-cov to 0.2.4 2022-03-19 00:45:08 +09:00
5 changed files with 67 additions and 15 deletions

View File

@@ -23,15 +23,20 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-18.04
- ubuntu-20.04
tool:
# 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@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,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,mdbook
- cargo-hack@0.5.12,cargo-llvm-cov@0.3.0,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.3,mdbook@0.4.18
# 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
- 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,mdbook
- os: windows-2019
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest
runs-on: ${{ matrix.os }}

View File

@@ -10,6 +10,27 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [1.3.2] - 2022-04-16
- Update `mdbook@latest` to 0.4.18.
- Update `wasmtime@latest` to 0.35.3.
## [1.3.1] - 2022-04-08
- Update `cargo-llvm-cov@latest` to 0.3.0.
## [1.3.0] - 2022-04-04
- Support `mdbook`. ([#4](https://github.com/taiki-e/install-action/pull/4), thanks @thomcc)
## [1.2.2] - 2022-03-18
- Support specifying the version of `nextest`. ([#3](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
- Support `nextest`.
@@ -74,7 +95,12 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
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.3.2...HEAD
[1.3.2]: https://github.com/taiki-e/install-action/compare/v1.3.1...v1.3.2
[1.3.1]: https://github.com/taiki-e/install-action/compare/v1.3.0...v1.3.1
[1.3.0]: https://github.com/taiki-e/install-action/compare/v1.2.2...v1.3.0
[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.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

View File

@@ -77,6 +77,7 @@ https://spdx.org/licenses
| [**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) |
| [**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) |
| [**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/master/LICENSE) |
<!-- 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) |

33
main.sh
View File

@@ -59,7 +59,7 @@ for tool in "${tools[@]}"; do
# https://github.com/taiki-e/cargo-hack/releases
cargo-hack) latest_version="0.5.12" ;;
# https://github.com/taiki-e/cargo-llvm-cov/releases
cargo-llvm-cov) latest_version="0.2.3" ;;
cargo-llvm-cov) latest_version="0.3.0" ;;
# https://github.com/taiki-e/cargo-minimal-versions/releases
cargo-minimal-versions) latest_version="0.1.3" ;;
# https://github.com/taiki-e/parse-changelog/releases
@@ -102,15 +102,11 @@ for tool in "${tools[@]}"; do
nextest)
# https://nexte.st/book/pre-built-binaries.html
case "${OSTYPE}" in
linux*) url="https://get.nexte.st/latest/linux" ;;
darwin*) url="https://get.nexte.st/latest/mac" ;;
cygwin* | msys*) url="https://get.nexte.st/latest/windows-tar" ;;
linux*) url="https://get.nexte.st/${version}/linux" ;;
darwin*) url="https://get.nexte.st/${version}/mac" ;;
cygwin* | msys*) url="https://get.nexte.st/${version}/windows-tar" ;;
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
esac
case "${version}" in
latest) ;;
*) warn "specifying the version of ${tool} is not supported yet by this action" ;;
esac
# shellcheck disable=SC2086
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
| tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin
@@ -182,7 +178,7 @@ for tool in "${tools[@]}"; do
;;
wasmtime)
# https://github.com/bytecodealliance/wasmtime/releases
latest_version="0.35.1"
latest_version="0.35.3"
repo="bytecodealliance/wasmtime"
case "${OSTYPE}" in
linux*) target="x86_64-linux" ;;
@@ -198,6 +194,25 @@ for tool in "${tools[@]}"; do
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
| tar xJf - --strip-components 1 -C ${CARGO_HOME:-~/.cargo}/bin "wasmtime-v${version}-${target}/wasmtime"
;;
mdbook)
# https://github.com/rust-lang/mdBook/releases
latest_version="0.4.18"
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
latest) version="${latest_version}" ;;
esac
url="https://github.com/${repo}/releases/download/v${version}/${tool}-v${version}-${target}.tar.gz"
# shellcheck disable=SC2086
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
| tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin
;;
*) bail "unsupported tool '${tool}'" ;;
esac

View File

@@ -66,6 +66,10 @@ echo "============== CHANGELOG =============="
parse-changelog CHANGELOG.md "${version}"
echo "======================================="
if ! git branch | grep -q '\* main'; then
bail "current branch is not 'main'"
fi
if [[ -n "${tags}" ]]; then
# Create a release commit.
git add CHANGELOG.md
@@ -84,13 +88,14 @@ tools=(
valgrind
wasm-pack
wasmtime
mdbook
)
(
set -x
git push origin main
git tag "${tag}"
git push origin main
git push origin --tags
version_tag="v${version%%.*}"