Skip to content

Commit

Permalink
ci: Don't check package size
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Mar 12, 2024
1 parent bbf7aea commit a8ec4aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 91 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/custom/after-install/action.yml

This file was deleted.

37 changes: 1 addition & 36 deletions .github/workflows/custom/before-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,6 @@ runs:
using: "composite"
steps:
- name: Define R CMD check error condition
# Rscript not available on Mac
if: runner.os != 'macOS'
run: |
if (getRversion() < "4.0") {
message("Setting RCMDCHECK_ERROR_ON")
cat('RCMDCHECK_ERROR_ON="warning"\n', file = Sys.getenv("GITHUB_ENV"), append = TRUE)
}
shell: Rscript {0}

- name: Define _R_CHECK_PKG_SIZES_THRESHOLD_
run: |
echo '_R_CHECK_PKG_SIZES_THRESHOLD_=10' | tee -a $GITHUB_ENV
shell: bash

- name: Define _R_CHECK_FORCE_SUGGESTS_
# Rscript not available on Mac
if: runner.os != 'macOS'
run: |
if (getRversion() < "4.0") {
message("Setting _R_CHECK_FORCE_SUGGESTS_")
cat('_R_CHECK_FORCE_SUGGESTS_=false\n', file = Sys.getenv("GITHUB_ENV"), append = TRUE)
}
shell: Rscript {0}

- name: Define DM_TEST_SRC
run: |
echo "DM_TEST_SRC=${{ matrix.config.test-src }}" | tee -a $GITHUB_ENV
shell: bash

- name: Clean up broken mysql apt
# FIXME: Remove if package becomes unavailable
if: runner.os == 'Linux'
run: |
sudo apt-get update
if [ $(lsb_release --short --codename) == 'focal' ]; then
sudo apt-get install mysql-common=5.8+1.0.5ubuntu2 --allow-downgrades
fi
echo '_R_CHECK_PKG_SIZES_=FALSE' | tee -a $GITHUB_ENV
shell: bash

0 comments on commit a8ec4aa

Please sign in to comment.