Begin upgrades to quickjs-ng v0.8.0 #252
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
name: R-CMD-check-crossplatform | |
jobs: | |
R-CMD-check: | |
runs-on: ubuntu-latest | |
name: Check (${{ matrix.config.platform }} ${{ matrix.config.cc }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { platform: 386, cc: gcc-14, cxx: g++-14 } | |
- { platform: 386, cc: clang-18, cxx: clang++-18 } | |
- { platform: armel, cc: gcc-14, cxx: g++-14 } | |
- { platform: armel, cc: clang-18, cxx: clang++-18 } | |
- { platform: armhf, cc: gcc-14, cxx: g++-14 } | |
- { platform: armhf, cc: clang-18, cxx: clang++-18 } | |
- { platform: arm64, cc: gcc-14, cxx: g++-14 } | |
- { platform: arm64, cc: clang-18, cxx: clang++-18 } | |
- { platform: ppc64le, cc: gcc-14, cxx: g++-14 } | |
- { platform: ppc64le, cc: clang-18, cxx: clang++-18 } | |
- { platform: riscv64, cc: gcc-14, cxx: g++-14 } | |
- { platform: riscv64, cc: clang-18, cxx: clang++-18 } | |
#- { platform: s390x, cc: gcc-14, cxx: g++-14 } | |
#- { platform: s390x, cc: clang-18, cxx: clang++-18 } | |
- { platform: FreeBSD, cc: default, cxx: default } | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup QEMU | |
if: matrix.config.platform != 'FreeBSD' | |
uses: docker/setup-qemu-action@master | |
- name: Check with ${{ matrix.config.cc }} | |
if: matrix.config.platform != 'FreeBSD' | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: debian:sid-slim | |
options: -v ${{ github.workspace }}:/quickjsr --platform=linux/${{ matrix.config.platform }} -e DEBIAN_FRONTEND=noninteractive -e TZ=Etc/UTC -e LANG=en_AU.UTF-8 | |
run: | | |
apt-get update | |
apt-get install --no-install-recommends -y ${{ matrix.config.cc }} g++-14 \ | |
r-base-core locales pandoc qpdf r-cran-tinytest r-cran-rmarkdown \ | |
r-cran-knitr r-cran-rcmdcheck make | |
echo "en_AU.UTF-8 UTF-8" >> /etc/locale.gen | |
locale-gen en_AU.UTF-8 | |
echo "CC=${{ matrix.config.cc }}" >> /etc/R/Makeconf | |
echo "CXX=${{ matrix.config.cxx }}" >> /etc/R/Makeconf | |
# PPC64LE pandoc does not support lua filters (breaking vignettes) | |
if [ "${{ matrix.config.platform }}" = "ppc64le" ]; then | |
Rscript -e 'rcmdcheck::rcmdcheck("/quickjsr", args = c("--no-manual", "--as-cran", "--no-vignettes"), build_args = "--no-build-vignettes", check_dir = "/quickjsr/check")' | |
else | |
Rscript -e 'rcmdcheck::rcmdcheck("/quickjsr", args = c("--no-manual", "--as-cran"), check_dir = "/quickjsr/check")' | |
fi | |
- name: Test in FreeBSD | |
if: matrix.config.platform == 'FreeBSD' | |
uses: vmactions/freebsd-vm@v1 | |
with: | |
usesh: true | |
prepare: | | |
pkg install -y R R-cran-tinytest R-cran-rcmdcheck R-cran-knitr R-cran-rmarkdown | |
run: | | |
Rscript -e 'rcmdcheck::rcmdcheck("/root/work/QuickJSR/QuickJSR", args = c("--no-manual", "--as-cran"), check_dir = "/root/work/QuickJSR/QuickJSR/check")' | |
- name: Upload check results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: arch-${{ matrix.config.platform }}-${{ matrix.config.cc }}-results | |
path: check |