Skip to content

Commit f23d32e

Browse files
committed
change to use apt-get instead of apt in scripts
1 parent 38be029 commit f23d32e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/ci.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ jobs:
7272
- name: Build on Linux
7373
if: startsWith(matrix.image, 'ubuntu')
7474
run: |
75-
sudo apt --yes update
76-
sudo apt --yes install nvidia-cuda-toolkit
75+
sudo apt-get --yes update
76+
sudo apt-get --yes install nvidia-cuda-toolkit
7777
/bin/sh ./build.sh ${{ matrix.options }} ${{ matrix.asm }}
7878
- name: Build on macOS
7979
if: startsWith(matrix.image, 'macos')
@@ -148,8 +148,8 @@ jobs:
148148
- name: Build R package
149149
run: |
150150
cd R
151-
sudo apt --yes update
152-
sudo apt --yes install texlive-latex-base texlive-fonts-extra
151+
sudo apt-get --yes update
152+
sudo apt-get --yes install texlive-latex-base texlive-fonts-extra
153153
Rscript build.R
154154
- name: Display errors
155155
if: failure()
@@ -652,8 +652,8 @@ jobs:
652652
if: startsWith(matrix.image, 'ubuntu')
653653
continue-on-error: true
654654
run: |
655-
sudo apt --yes update
656-
sudo apt --yes install texlive-latex-base texlive-fonts-extra
655+
sudo apt-get --yes update
656+
sudo apt-get --yes install texlive-latex-base texlive-fonts-extra
657657
install_file=$(echo bld/R/interpret_*.tar.gz)
658658
install_file=$(basename "$install_file" .tar.gz)
659659
cd bld/R
@@ -676,8 +676,8 @@ jobs:
676676
run: |
677677
wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
678678
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-jammy-16.list
679-
sudo apt --yes update
680-
sudo apt --yes install clang-format-16
679+
sudo apt-get --yes update
680+
sudo apt-get --yes install clang-format-16
681681
find shared/libebm \( -iname "*.cpp" -o -iname "*.h" -o -iname "*.hpp" \) | xargs clang-format-16 -i -style=file
682682
git diff --exit-code
683683
- name: Mark step with a warning

build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ check_install() {
2323
printf "%s\n" "Installing $l1_package"
2424

2525
if [ "$g_is_updated" -eq 0 ]; then
26-
sudo apt --yes update
26+
sudo apt-get --yes update
2727
l1_ret_code=$?
2828
if [ $l1_ret_code -ne 0 ]; then
2929
exit $l1_ret_code
@@ -32,7 +32,7 @@ check_install() {
3232
g_is_updated=1
3333
fi
3434

35-
sudo apt --yes install "$l1_package"
35+
sudo apt-get --yes install "$l1_package"
3636
l1_ret_code=$?
3737
if [ $l1_ret_code -ne 0 ]; then
3838
exit $l1_ret_code

shared/libebm/tests/libebm_test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ check_install() {
115115
printf "%s\n" "Installing $l1_package"
116116

117117
if [ "$g_is_updated" -eq 0 ]; then
118-
sudo apt --yes update
118+
sudo apt-get --yes update
119119
l1_ret_code=$?
120120
if [ $l1_ret_code -ne 0 ]; then
121121
exit $l1_ret_code
@@ -124,7 +124,7 @@ check_install() {
124124
g_is_updated=1
125125
fi
126126

127-
sudo apt --yes install "$l1_package"
127+
sudo apt-get --yes install "$l1_package"
128128
l1_ret_code=$?
129129
if [ $l1_ret_code -ne 0 ]; then
130130
exit $l1_ret_code

0 commit comments

Comments
 (0)