Skip to content

Commit

Permalink
change to use apt-get instead of apt in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Feb 4, 2025
1 parent 38be029 commit f23d32e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ jobs:
- name: Build on Linux
if: startsWith(matrix.image, 'ubuntu')
run: |
sudo apt --yes update
sudo apt --yes install nvidia-cuda-toolkit
sudo apt-get --yes update
sudo apt-get --yes install nvidia-cuda-toolkit
/bin/sh ./build.sh ${{ matrix.options }} ${{ matrix.asm }}
- name: Build on macOS
if: startsWith(matrix.image, 'macos')
Expand Down Expand Up @@ -148,8 +148,8 @@ jobs:
- name: Build R package
run: |
cd R
sudo apt --yes update
sudo apt --yes install texlive-latex-base texlive-fonts-extra
sudo apt-get --yes update
sudo apt-get --yes install texlive-latex-base texlive-fonts-extra
Rscript build.R
- name: Display errors
if: failure()
Expand Down Expand Up @@ -652,8 +652,8 @@ jobs:
if: startsWith(matrix.image, 'ubuntu')
continue-on-error: true
run: |
sudo apt --yes update
sudo apt --yes install texlive-latex-base texlive-fonts-extra
sudo apt-get --yes update
sudo apt-get --yes install texlive-latex-base texlive-fonts-extra
install_file=$(echo bld/R/interpret_*.tar.gz)
install_file=$(basename "$install_file" .tar.gz)
cd bld/R
Expand All @@ -676,8 +676,8 @@ jobs:
run: |
wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-jammy-16.list
sudo apt --yes update
sudo apt --yes install clang-format-16
sudo apt-get --yes update
sudo apt-get --yes install clang-format-16
find shared/libebm \( -iname "*.cpp" -o -iname "*.h" -o -iname "*.hpp" \) | xargs clang-format-16 -i -style=file
git diff --exit-code
- name: Mark step with a warning
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ check_install() {
printf "%s\n" "Installing $l1_package"

if [ "$g_is_updated" -eq 0 ]; then
sudo apt --yes update
sudo apt-get --yes update
l1_ret_code=$?
if [ $l1_ret_code -ne 0 ]; then
exit $l1_ret_code
Expand All @@ -32,7 +32,7 @@ check_install() {
g_is_updated=1
fi

sudo apt --yes install "$l1_package"
sudo apt-get --yes install "$l1_package"
l1_ret_code=$?
if [ $l1_ret_code -ne 0 ]; then
exit $l1_ret_code
Expand Down
4 changes: 2 additions & 2 deletions shared/libebm/tests/libebm_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ check_install() {
printf "%s\n" "Installing $l1_package"

if [ "$g_is_updated" -eq 0 ]; then
sudo apt --yes update
sudo apt-get --yes update
l1_ret_code=$?
if [ $l1_ret_code -ne 0 ]; then
exit $l1_ret_code
Expand All @@ -124,7 +124,7 @@ check_install() {
g_is_updated=1
fi

sudo apt --yes install "$l1_package"
sudo apt-get --yes install "$l1_package"
l1_ret_code=$?
if [ $l1_ret_code -ne 0 ]; then
exit $l1_ret_code
Expand Down

0 comments on commit f23d32e

Please sign in to comment.