mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-13 07:40:50 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af69857b4d | ||
|
|
e0569e0473 | ||
|
|
5ba293a432 | ||
|
|
7282cc8708 |
2
.github/.cspell/organization-dictionary.txt
vendored
2
.github/.cspell/organization-dictionary.txt
vendored
@@ -29,6 +29,7 @@ Zmiri
|
|||||||
|
|
||||||
// Rust target triple
|
// Rust target triple
|
||||||
aarch
|
aarch
|
||||||
|
amdgpu
|
||||||
androideabi
|
androideabi
|
||||||
armeb
|
armeb
|
||||||
armebv
|
armebv
|
||||||
@@ -145,6 +146,7 @@ objdump
|
|||||||
pipefail
|
pipefail
|
||||||
powerset
|
powerset
|
||||||
proto
|
proto
|
||||||
|
ranlib
|
||||||
readelf
|
readelf
|
||||||
SIGABRT
|
SIGABRT
|
||||||
SIGILL
|
SIGILL
|
||||||
|
|||||||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -29,4 +29,3 @@ jobs:
|
|||||||
title: $version
|
title: $version
|
||||||
branch: 'main|v[0-9]+'
|
branch: 'main|v[0-9]+'
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- run: ci/publish.sh
|
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.6.7] - 2023-04-04
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.5.13.
|
||||||
|
|
||||||
## [2.6.6] - 2023-04-02
|
## [2.6.6] - 2023-04-02
|
||||||
|
|
||||||
- Update `cargo-llvm-cov@latest` to 0.5.12.
|
- Update `cargo-llvm-cov@latest` to 0.5.12.
|
||||||
@@ -703,7 +707,8 @@ Note: This release is considered a breaking change because installing on version
|
|||||||
|
|
||||||
Initial release
|
Initial release
|
||||||
|
|
||||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.6.6...HEAD
|
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.6.7...HEAD
|
||||||
|
[2.6.7]: https://github.com/taiki-e/install-action/compare/v2.6.6...v2.6.7
|
||||||
[2.6.6]: https://github.com/taiki-e/install-action/compare/v2.6.5...v2.6.6
|
[2.6.6]: https://github.com/taiki-e/install-action/compare/v2.6.5...v2.6.6
|
||||||
[2.6.5]: https://github.com/taiki-e/install-action/compare/v2.6.4...v2.6.5
|
[2.6.5]: https://github.com/taiki-e/install-action/compare/v2.6.4...v2.6.5
|
||||||
[2.6.4]: https://github.com/taiki-e/install-action/compare/v2.6.3...v2.6.4
|
[2.6.4]: https://github.com/taiki-e/install-action/compare/v2.6.3...v2.6.4
|
||||||
|
|||||||
@@ -3,15 +3,6 @@ set -euxo pipefail
|
|||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
cd "$(dirname "$0")"/..
|
cd "$(dirname "$0")"/..
|
||||||
|
|
||||||
bail() {
|
|
||||||
echo >&2 "error: $*"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ -z "${CI:-}" ]]; then
|
|
||||||
bail "this script is intended to call from release workflow on CI"
|
|
||||||
fi
|
|
||||||
|
|
||||||
git config user.name "Taiki Endo"
|
git config user.name "Taiki Endo"
|
||||||
git config user.email "te316e89@gmail.com"
|
git config user.email "te316e89@gmail.com"
|
||||||
|
|
||||||
|
|||||||
@@ -1,74 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -euo pipefail
|
|
||||||
IFS=$'\n\t'
|
|
||||||
cd "$(dirname "$0")"/..
|
|
||||||
|
|
||||||
# shellcheck disable=SC2154
|
|
||||||
trap 's=$?; echo >&2 "$0: Error on line "${LINENO}": ${BASH_COMMAND}"; exit ${s}' ERR
|
|
||||||
|
|
||||||
bail() {
|
|
||||||
echo >&2 "error: $*"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ -z "${CI:-}" ]]; then
|
|
||||||
bail "this script is intended to call from release workflow on CI"
|
|
||||||
fi
|
|
||||||
ref="${GITHUB_REF:-}"
|
|
||||||
if [[ "${ref}" != "refs/tags/"* ]]; then
|
|
||||||
bail "tag ref should start with 'refs/tags/'"
|
|
||||||
fi
|
|
||||||
tag="${ref#refs/tags/}"
|
|
||||||
|
|
||||||
git config user.name "Taiki Endo"
|
|
||||||
git config user.email "te316e89@gmail.com"
|
|
||||||
|
|
||||||
version="${tag}"
|
|
||||||
version="${version#v}"
|
|
||||||
|
|
||||||
tools=()
|
|
||||||
for tool in tools/codegen/base/*.json; do
|
|
||||||
tools+=("$(basename "${tool%.*}")")
|
|
||||||
done
|
|
||||||
# Aliases
|
|
||||||
tools+=(nextest)
|
|
||||||
# Not manifest-base
|
|
||||||
tools+=(valgrind)
|
|
||||||
|
|
||||||
(
|
|
||||||
set -x
|
|
||||||
|
|
||||||
major_version_tag="v${version%%.*}"
|
|
||||||
git checkout -b "${major_version_tag}"
|
|
||||||
git push origin refs/heads/"${major_version_tag}"
|
|
||||||
if git --no-pager tag | grep -Eq "^${major_version_tag}$"; then
|
|
||||||
git tag -d "${major_version_tag}"
|
|
||||||
git push --delete origin refs/tags/"${major_version_tag}"
|
|
||||||
fi
|
|
||||||
git tag "${major_version_tag}"
|
|
||||||
git checkout main
|
|
||||||
git branch -d "${major_version_tag}"
|
|
||||||
)
|
|
||||||
|
|
||||||
for tool in "${tools[@]}"; do
|
|
||||||
(
|
|
||||||
set -x
|
|
||||||
git checkout -b "${tool}"
|
|
||||||
sed -i -e "s/required: true/required: false/g" action.yml
|
|
||||||
sed -i -e "s/# default: #publish:tool/default: ${tool}/g" action.yml
|
|
||||||
git add action.yml
|
|
||||||
git commit -m "${tool}"
|
|
||||||
git push origin -f refs/heads/"${tool}"
|
|
||||||
if git --no-pager tag | grep -Eq "^${tool}$"; then
|
|
||||||
git tag -d "${tool}"
|
|
||||||
git push --delete origin refs/tags/"${tool}"
|
|
||||||
fi
|
|
||||||
git tag "${tool}"
|
|
||||||
git checkout main
|
|
||||||
git branch -D "${tool}"
|
|
||||||
)
|
|
||||||
done
|
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
git push origin --tags
|
|
||||||
21
manifests/cargo-llvm-cov.json
generated
21
manifests/cargo-llvm-cov.json
generated
@@ -17,10 +17,27 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "0.5.12"
|
"version": "0.5.13"
|
||||||
},
|
},
|
||||||
"0.5": {
|
"0.5": {
|
||||||
"version": "0.5.12"
|
"version": "0.5.13"
|
||||||
|
},
|
||||||
|
"0.5.13": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"checksum": "e57875cba95527149d15d7f9c66b9d624d8154040f19aedbca96e2c6b7687ffb"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "f694bcaf714f352b76182b0aeec9626ca5280ceca275f949caa762a561030350"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "642046071c3c221748a3a6a08b5c7d71d7644928d4d7707fa30b38da8357f074"
|
||||||
|
},
|
||||||
|
"aarch64_linux_musl": {
|
||||||
|
"checksum": "d9173b2aae99f29276cd7d84ffdea9eb29f8831acd3f9d9de1c2af4366d917df"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "b9bb4d03065c4d7e52ed4148d71d36a4c890dee37108addfa9ba19771e46fa1d"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"0.5.12": {
|
"0.5.12": {
|
||||||
"x86_64_linux_musl": {
|
"x86_64_linux_musl": {
|
||||||
|
|||||||
@@ -14,14 +14,6 @@ trap 's=$?; echo >&2 "$0: Error on line "${LINENO}": ${BASH_COMMAND}"; exit ${s}
|
|||||||
# Note: This script requires the following tools:
|
# Note: This script requires the following tools:
|
||||||
# - parse-changelog <https://github.com/taiki-e/parse-changelog>
|
# - parse-changelog <https://github.com/taiki-e/parse-changelog>
|
||||||
|
|
||||||
x() {
|
|
||||||
local cmd="$1"
|
|
||||||
shift
|
|
||||||
(
|
|
||||||
set -x
|
|
||||||
"${cmd}" "$@"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
bail() {
|
bail() {
|
||||||
echo >&2 "error: $*"
|
echo >&2 "error: $*"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -48,7 +40,6 @@ if gh release view "${tag}" &>/dev/null; then
|
|||||||
bail "tag '${tag}' has already been created and pushed"
|
bail "tag '${tag}' has already been created and pushed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure that the release was created from an allowed branch.
|
|
||||||
if ! git branch | grep -q '\* main$'; then
|
if ! git branch | grep -q '\* main$'; then
|
||||||
bail "current branch is not 'main'"
|
bail "current branch is not 'main'"
|
||||||
fi
|
fi
|
||||||
@@ -97,11 +88,57 @@ echo "======================================="
|
|||||||
|
|
||||||
if [[ -n "${tags}" ]]; then
|
if [[ -n "${tags}" ]]; then
|
||||||
# Create a release commit.
|
# Create a release commit.
|
||||||
x git add "${changelog}"
|
git add "${changelog}"
|
||||||
x git commit -m "Release ${version}"
|
git commit -m "Release ${version}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
x git tag "${tag}"
|
tools=()
|
||||||
# TODO: the following still assumes admin permissions
|
for tool in tools/codegen/base/*.json; do
|
||||||
x git push origin main
|
tools+=("$(basename "${tool%.*}")")
|
||||||
x git push origin --tags
|
done
|
||||||
|
# Aliases
|
||||||
|
tools+=(nextest)
|
||||||
|
# Not manifest-base
|
||||||
|
tools+=(valgrind)
|
||||||
|
|
||||||
|
(
|
||||||
|
set -x
|
||||||
|
|
||||||
|
git tag "${tag}"
|
||||||
|
git push origin main
|
||||||
|
git push origin --tags
|
||||||
|
|
||||||
|
major_version_tag="v${version%%.*}"
|
||||||
|
git checkout -b "${major_version_tag}"
|
||||||
|
git push origin refs/heads/"${major_version_tag}"
|
||||||
|
if git --no-pager tag | grep -Eq "^${major_version_tag}$"; then
|
||||||
|
git tag -d "${major_version_tag}"
|
||||||
|
git push --delete origin refs/tags/"${major_version_tag}"
|
||||||
|
fi
|
||||||
|
git tag "${major_version_tag}"
|
||||||
|
git checkout main
|
||||||
|
git branch -d "${major_version_tag}"
|
||||||
|
)
|
||||||
|
|
||||||
|
for tool in "${tools[@]}"; do
|
||||||
|
(
|
||||||
|
set -x
|
||||||
|
git checkout -b "${tool}"
|
||||||
|
sed -i -e "s/required: true/required: false/g" action.yml
|
||||||
|
sed -i -e "s/# default: #publish:tool/default: ${tool}/g" action.yml
|
||||||
|
git add action.yml
|
||||||
|
git commit -m "${tool}"
|
||||||
|
git push origin -f refs/heads/"${tool}"
|
||||||
|
if git --no-pager tag | grep -Eq "^${tool}$"; then
|
||||||
|
git tag -d "${tool}"
|
||||||
|
git push --delete origin refs/tags/"${tool}"
|
||||||
|
fi
|
||||||
|
git tag "${tool}"
|
||||||
|
git checkout main
|
||||||
|
git branch -D "${tool}"
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
git push origin --tags
|
||||||
|
|||||||
Reference in New Issue
Block a user