mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-11 07:00:25 +00:00
Update CI config
This commit is contained in:
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
@@ -118,22 +118,19 @@ jobs:
|
|||||||
apt-get -o Acquire::Retries=10 -qq update
|
apt-get -o Acquire::Retries=10 -qq update
|
||||||
apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends cargo
|
apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends cargo
|
||||||
if: startsWith(matrix.container, 'ubuntu') || startsWith(matrix.container, 'debian')
|
if: startsWith(matrix.container, 'ubuntu') || startsWith(matrix.container, 'debian')
|
||||||
- name: Install requirements (fedora/almalinux)
|
- name: Install requirements (fedora/almalinux/centos)
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
dnf=dnf
|
if type -P dnf &>/dev/null; then
|
||||||
if ! type -P dnf &>/dev/null; then
|
dnf install -y cargo
|
||||||
dnf=microdnf
|
elif type -P microdnf &>/dev/null; then
|
||||||
|
# tar and gzip are required for actions/checkout on *-minimal images
|
||||||
|
microdnf install -y cargo 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
|
||||||
# tar and gzip are required for actions/checkout on almalinux:*-minimal
|
if: startsWith(matrix.container, 'fedora') || startsWith(matrix.container, 'almalinux') || startsWith(matrix.container, 'centos')
|
||||||
$dnf install -y cargo tar gzip
|
|
||||||
if: startsWith(matrix.container, 'fedora') || startsWith(matrix.container, 'almalinux')
|
|
||||||
- name: Install requirements (centos)
|
|
||||||
run: |
|
|
||||||
set -euxo pipefail
|
|
||||||
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, 'centos')
|
|
||||||
- name: Install requirements (alpine)
|
- name: Install requirements (alpine)
|
||||||
run: |
|
run: |
|
||||||
set -eux
|
set -eux
|
||||||
|
|||||||
Reference in New Issue
Block a user