mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 17:55:19 +00:00
Dont use sudo in installation CI if already running as root in docker image
This commit is contained in:
parent
2ba67b256c
commit
e065594ff4
10
.github/workflows/install.yml
vendored
10
.github/workflows/install.yml
vendored
@ -108,12 +108,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ ${{ matrix.imageFamily }} == "debian" ]; then
|
if [ ${{ matrix.imageFamily }} == "debian" ]; then
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y sudo git
|
apt-get install -y git
|
||||||
elif [ ${{ matrix.imageFamily }} == "redhat" ]; then
|
elif [ ${{ matrix.imageFamily }} == "redhat" ]; then
|
||||||
dnf install -y sudo git
|
dnf install -y git
|
||||||
dnf install curl -y --allowerasing || true
|
dnf install curl -y --allowerasing || true
|
||||||
elif [ ${{ matrix.imageFamily }} == "suse" ]; then
|
elif [ ${{ matrix.imageFamily }} == "suse" ]; then
|
||||||
zypper install -y sudo git
|
zypper install -y git
|
||||||
fi
|
fi
|
||||||
# Only clone submodules needed for standard tests/regression to save space
|
# Only clone submodules needed for standard tests/regression to save space
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -134,7 +134,9 @@ jobs:
|
|||||||
# Run main tool chain installation script, either as a user or system wide
|
# Run main tool chain installation script, either as a user or system wide
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
if [ -z ${{ matrix.user }} ]; then
|
if [ ! -z ${{ matrix.image }} ]; then
|
||||||
|
./bin/wally-tool-chain-install.sh --clean ${{ matrix.riscv_path }}
|
||||||
|
else if [ -z ${{ matrix.user }} ]; then
|
||||||
sudo ./bin/wally-tool-chain-install.sh --clean ${{ matrix.riscv_path }}
|
sudo ./bin/wally-tool-chain-install.sh --clean ${{ matrix.riscv_path }}
|
||||||
else
|
else
|
||||||
sudo ./bin/wally-package-install.sh
|
sudo ./bin/wally-package-install.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user