mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 20:32:36 +08:00
ci: Use taiki-e/github-actions/checkout action
This commit is contained in:
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@@ -55,9 +55,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: taiki-e/github-actions/checkout@main
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
# cross attempts to install rust-src when Cargo.toml is available even if `cross --version`
|
# cross attempts to install rust-src when Cargo.toml is available even if `cross --version`
|
||||||
- run: rm Cargo.toml
|
- run: rm Cargo.toml
|
||||||
- name: Generate tool list
|
- name: Generate tool list
|
||||||
@@ -125,10 +123,6 @@ jobs:
|
|||||||
- name: Install requirements (fedora/almalinux/centos)
|
- name: Install requirements (fedora/almalinux/centos)
|
||||||
run: |
|
run: |
|
||||||
set -eEuxo pipefail
|
set -eEuxo pipefail
|
||||||
if ! type -P dnf &>/dev/null && type -P microdnf &>/dev/null; then
|
|
||||||
# tar and gzip are required for actions/checkout on *-minimal images
|
|
||||||
microdnf install -y tar gzip
|
|
||||||
fi
|
|
||||||
curl --proto '=https' --tlsv1.2 -fsSL --retry 10 https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --no-modify-path
|
curl --proto '=https' --tlsv1.2 -fsSL --retry 10 https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --no-modify-path
|
||||||
echo "$HOME/.cargo/bin" >>"${GITHUB_PATH}"
|
echo "$HOME/.cargo/bin" >>"${GITHUB_PATH}"
|
||||||
if: startsWith(matrix.container, 'fedora') || startsWith(matrix.container, 'almalinux') || startsWith(matrix.container, 'centos')
|
if: startsWith(matrix.container, 'fedora') || startsWith(matrix.container, 'almalinux') || startsWith(matrix.container, 'centos')
|
||||||
@@ -136,9 +130,7 @@ jobs:
|
|||||||
run: apk --no-cache add bash cargo
|
run: apk --no-cache add bash cargo
|
||||||
shell: sh
|
shell: sh
|
||||||
if: startsWith(matrix.container, 'alpine')
|
if: startsWith(matrix.container, 'alpine')
|
||||||
- uses: actions/checkout@v3 # TODO: actions/checkout@v4 requires glibc 2.28+
|
- uses: taiki-e/github-actions/checkout@main
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
# cross attempts to install rust-src when Cargo.toml is available even if `cross --version`
|
# cross attempts to install rust-src when Cargo.toml is available even if `cross --version`
|
||||||
- run: rm Cargo.toml
|
- run: rm Cargo.toml
|
||||||
- name: Generate tool list
|
- name: Generate tool list
|
||||||
@@ -153,9 +145,7 @@ jobs:
|
|||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container: ubuntu:22.04
|
container: ubuntu:22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: taiki-e/github-actions/checkout@main
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
- name: Generate tool list
|
- name: Generate tool list
|
||||||
id: tool-list
|
id: tool-list
|
||||||
run: tools/ci/tool-list.sh >>"${GITHUB_OUTPUT}"
|
run: tools/ci/tool-list.sh >>"${GITHUB_OUTPUT}"
|
||||||
@@ -170,9 +160,7 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: taiki-e/github-actions/checkout@main
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: rustup toolchain add nightly --no-self-update && rustup default nightly
|
run: rustup toolchain add nightly --no-self-update && rustup default nightly
|
||||||
- run: tools/manifest.sh
|
- run: tools/manifest.sh
|
||||||
|
|||||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -20,9 +20,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: taiki-e/github-actions/checkout@main
|
||||||
with:
|
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user