mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-18 09:50:22 +00:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8da22002b | ||
|
|
1c9cdf1902 | ||
|
|
87c08913ae | ||
|
|
2f673b4841 | ||
|
|
ec615ab753 | ||
|
|
3048daa459 | ||
|
|
ce314215ec | ||
|
|
3ac3842059 | ||
|
|
2db66fc31e | ||
|
|
fb545eb1c9 | ||
|
|
42e74b55ab |
1
.github/.cspell/organization-dictionary.txt
vendored
1
.github/.cspell/organization-dictionary.txt
vendored
@@ -38,6 +38,7 @@ asmjs
|
|||||||
atmega
|
atmega
|
||||||
bpfeb
|
bpfeb
|
||||||
bpfel
|
bpfel
|
||||||
|
csky
|
||||||
cuda
|
cuda
|
||||||
eabi
|
eabi
|
||||||
eabihf
|
eabihf
|
||||||
|
|||||||
9
.github/dependabot.yml
vendored
Normal file
9
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: cargo
|
||||||
|
directory: /
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
commit-message:
|
||||||
|
prefix: ''
|
||||||
|
labels: []
|
||||||
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@@ -22,11 +22,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CREATE_PR_TOKEN }}
|
persist-credentials: false
|
||||||
- uses: taiki-e/create-gh-release-action@v1
|
- uses: taiki-e/create-gh-release-action@v1
|
||||||
with:
|
with:
|
||||||
changelog: CHANGELOG.md
|
changelog: CHANGELOG.md
|
||||||
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
|
|
||||||
|
|||||||
19
CHANGELOG.md
19
CHANGELOG.md
@@ -10,6 +10,20 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.12.13] - 2023-07-18
|
||||||
|
|
||||||
|
- Slightly improve the time taken to install tools distributed as `.zip`.
|
||||||
|
|
||||||
|
## [2.12.12] - 2023-07-17
|
||||||
|
|
||||||
|
- Update `mdbook@latest` to 0.4.32.
|
||||||
|
|
||||||
|
## [2.12.11] - 2023-07-13
|
||||||
|
|
||||||
|
- Update `syft@latest` to 0.85.0.
|
||||||
|
|
||||||
|
- Update `dprint@latest` to 0.39.1.
|
||||||
|
|
||||||
## [2.12.10] - 2023-07-09
|
## [2.12.10] - 2023-07-09
|
||||||
|
|
||||||
- Update `dprint@latest` to 0.39.0.
|
- Update `dprint@latest` to 0.39.0.
|
||||||
@@ -935,7 +949,10 @@ 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.12.10...HEAD
|
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.12.13...HEAD
|
||||||
|
[2.12.13]: https://github.com/taiki-e/install-action/compare/v2.12.12...v2.12.13
|
||||||
|
[2.12.12]: https://github.com/taiki-e/install-action/compare/v2.12.11...v2.12.12
|
||||||
|
[2.12.11]: https://github.com/taiki-e/install-action/compare/v2.12.10...v2.12.11
|
||||||
[2.12.10]: https://github.com/taiki-e/install-action/compare/v2.12.9...v2.12.10
|
[2.12.10]: https://github.com/taiki-e/install-action/compare/v2.12.9...v2.12.10
|
||||||
[2.12.9]: https://github.com/taiki-e/install-action/compare/v2.12.8...v2.12.9
|
[2.12.9]: https://github.com/taiki-e/install-action/compare/v2.12.8...v2.12.9
|
||||||
[2.12.8]: https://github.com/taiki-e/install-action/compare/v2.12.7...v2.12.8
|
[2.12.8]: https://github.com/taiki-e/install-action/compare/v2.12.7...v2.12.8
|
||||||
|
|||||||
@@ -1,75 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
||||||
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-based
|
|
||||||
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
|
|
||||||
4
main.sh
4
main.sh
@@ -115,7 +115,7 @@ download_and_extract() {
|
|||||||
else
|
else
|
||||||
case "${url}" in
|
case "${url}" in
|
||||||
*.zip)
|
*.zip)
|
||||||
unzip tmp
|
unzip -q tmp "${bin_in_archive#\./}"
|
||||||
mv "${bin_in_archive}" "${bin_dir}/"
|
mv "${bin_in_archive}" "${bin_dir}/"
|
||||||
;;
|
;;
|
||||||
*) mv tmp "${installed_bin}" ;;
|
*) mv tmp "${installed_bin}" ;;
|
||||||
@@ -470,7 +470,7 @@ for tool in "${tools[@]}"; do
|
|||||||
(
|
(
|
||||||
cd "${tmp_dir}"
|
cd "${tmp_dir}"
|
||||||
download_and_checksum "${url}" "${checksum}"
|
download_and_checksum "${url}" "${checksum}"
|
||||||
unzip tmp
|
unzip -q tmp
|
||||||
mv "bin/protoc${exe}" "${bin_dir}/"
|
mv "bin/protoc${exe}" "${bin_dir}/"
|
||||||
mkdir -p "${include_dir}/"
|
mkdir -p "${include_dir}/"
|
||||||
cp -r include/. "${include_dir}/"
|
cp -r include/. "${include_dir}/"
|
||||||
|
|||||||
21
manifests/dprint.json
generated
21
manifests/dprint.json
generated
@@ -20,10 +20,27 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "0.39.0"
|
"version": "0.39.1"
|
||||||
},
|
},
|
||||||
"0.39": {
|
"0.39": {
|
||||||
"version": "0.39.0"
|
"version": "0.39.1"
|
||||||
|
},
|
||||||
|
"0.39.1": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"checksum": "5e6ff56f68d31ff8411367fa021a15b29092d0d48bcd8b2741953927652da953"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "f4fb55f4361d70a43fd6cefd25328accef0cc52790950261f1d21aabfe97132d"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "6e7f87393fadd04bee062859c00f71bd7379960c15cebd673b35f3c810a0cee9"
|
||||||
|
},
|
||||||
|
"aarch64_linux_gnu": {
|
||||||
|
"checksum": "3a91d748c57d8510399d17eb14181c8f2803d9e67f7403ad7043a2c7a30c3568"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "63aa28e5ee984c029da74f51b53d4b3f979d9b70fce3800eb82486af389d3a99"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"0.39.0": {
|
"0.39.0": {
|
||||||
"x86_64_linux_musl": {
|
"x86_64_linux_musl": {
|
||||||
|
|||||||
18
manifests/mdbook.json
generated
18
manifests/mdbook.json
generated
@@ -17,10 +17,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "0.4.31"
|
"version": "0.4.32"
|
||||||
},
|
},
|
||||||
"0.4": {
|
"0.4": {
|
||||||
"version": "0.4.31"
|
"version": "0.4.32"
|
||||||
|
},
|
||||||
|
"0.4.32": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"checksum": "ac38f040eb462752548c865d6c9e900aa862852d42190cd773d5f20cd7b757f9"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "a625001956c903ff7b6864e90bb6380eae0e8ed711040dfeab932ace68e73d79"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "c06f2eeb4cfa487931213b830701a3dfa1eab5fcd7ec3756f14ffc68171a4817"
|
||||||
|
},
|
||||||
|
"aarch64_linux_musl": {
|
||||||
|
"checksum": "e68950f91fa907e89bd7d3f4d3e228a0c7bb4556689ba9e2b3adc42e4e7d6021"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"0.4.31": {
|
"0.4.31": {
|
||||||
"x86_64_linux_musl": {
|
"x86_64_linux_musl": {
|
||||||
|
|||||||
22
manifests/syft.json
generated
22
manifests/syft.json
generated
@@ -27,7 +27,27 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "0.84.1"
|
"version": "0.85.0"
|
||||||
|
},
|
||||||
|
"0.85": {
|
||||||
|
"version": "0.85.0"
|
||||||
|
},
|
||||||
|
"0.85.0": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"checksum": "2a92c69e1017e2bf3785886a8298ad2b94dda69f9f5623560999740986dd8420"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "8dc8a29466bc69f514b56d8e41801ff781253646d07044982122609cb48bc1da"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "ca38ceb73b3124e92e2717f269e826a5091f128ee9bade27c9d9481b45aca43e"
|
||||||
|
},
|
||||||
|
"aarch64_linux_musl": {
|
||||||
|
"checksum": "fe96fc0c286feb554821ec1baf9367ad7122173998a8ca4ae2bcda844cd4a10a"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "0864e3b49ccf232bab7e171e4f8c03d1d6b291adc122ca009aa00218e9c74607"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"0.84": {
|
"0.84": {
|
||||||
"version": "0.84.1"
|
"version": "0.84.1"
|
||||||
|
|||||||
@@ -102,7 +102,53 @@ if [[ -n "${tags}" ]]; then
|
|||||||
x git commit -m "Release ${version}"
|
x 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-based
|
||||||
|
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