Skip to content

Commit e4b871a

Browse files
committed
Guard every "apt" system package installation under "sudo"
1 parent bd950b8 commit e4b871a

5 files changed

Lines changed: 19 additions & 8 deletions

File tree

.github/workflows/ase_plugin_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: Install external tools from toolchain
4141
run: |
42-
apt update && apt install -y xz-utils ninja-build
42+
sudo apt update && sudo apt install -y xz-utils ninja-build
4343
cd toolchain
4444
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run -j8
4545
./scripts/stage4/install_stage4.sh

.github/workflows/build_test_cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161

6262
- name: Install external tools from toolchain
6363
run: |
64-
apt update && apt install -y gfortran ninja-build xz-utils
64+
sudo apt update && sudo apt install -y gfortran ninja-build xz-utils
6565
cd toolchain
6666
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run ${{matrix.external_toolchain_args}}
6767
./scripts/stage4/install_stage4.sh

.github/workflows/coverage.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,20 @@ jobs:
2323

2424
- name: Install Perl Dependencies and Coverage Tools
2525
run: |
26-
apt update && apt install -y curl jq ca-certificates python3-pip xz-utils ninja-build
27-
apt install -y lcov perl-modules
28-
apt install -y libcapture-tiny-perl libdatetime-perl libjson-perl libperlio-gzip-perl
26+
sudo apt update
27+
sudo apt install -y \
28+
curl \
29+
jq \
30+
ca-certificates \
31+
python3-pip \
32+
xz-utils \
33+
ninja-build \
34+
lcov \
35+
perl-modules \
36+
libcapture-tiny-perl \
37+
libdatetime-perl \
38+
libjson-perl \
39+
libperlio-gzip-perl
2940
lcov --version
3041
3142
- name: Install external tools from toolchain

.github/workflows/dynamic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
uses: actions/checkout@v7
2121
- name: Install external tools from toolchain
2222
run: |
23-
apt update && apt install -y xz-utils ninja-build
23+
sudo apt update && sudo apt install -y xz-utils ninja-build
2424
cd toolchain
2525
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run -j8
2626
./scripts/stage4/install_stage4.sh
2727
cd ..
2828
- name: Building
2929
run: |
3030
source toolchain/install/setup
31-
cmake -B build -G Ninja -DENABLE_ASAN=1 -DENABLE_MLALGO=1 -DENABLE_LIBXC=1
31+
cmake -B build -G Ninja -DENABLE_ASAN=ON -DENABLE_MLALGO=ON -DENABLE_LIBXC=ON
3232
cmake --build build -j8
3333
cmake --install build
3434
- name: Testing

.github/workflows/performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v7
2222
- name: Install Requirements
2323
run: |
24-
apt install -y time
24+
sudo apt install -y time
2525
- name: Test
2626
run: |
2727
. /opt/intel/oneapi/setvars.sh || :

0 commit comments

Comments
 (0)