mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-18 20:02:36 +08:00
Simplify CI config
This commit is contained in:
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@@ -121,15 +121,12 @@ jobs:
|
|||||||
- name: Install requirements (fedora/almalinux/centos)
|
- name: Install requirements (fedora/almalinux/centos)
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
if type -P dnf &>/dev/null; then
|
if ! type -P dnf &>/dev/null && type -P microdnf &>/dev/null; then
|
||||||
dnf install -y cargo
|
|
||||||
elif type -P microdnf &>/dev/null; then
|
|
||||||
# tar and gzip are required for actions/checkout on *-minimal images
|
# tar and gzip are required for actions/checkout on *-minimal images
|
||||||
microdnf install -y cargo tar gzip
|
microdnf install -y tar gzip
|
||||||
else
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
|
|
||||||
echo "$HOME/.cargo/bin" >>"${GITHUB_PATH}"
|
|
||||||
fi
|
fi
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
|
||||||
|
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')
|
||||||
- name: Install requirements (alpine)
|
- name: Install requirements (alpine)
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user