Skip to content

Commit

Permalink
Freebsd (#54)
Browse files Browse the repository at this point in the history
* Fix FreeBSD compat, add CI

* newline

* Install tinytest on FreeBSD runner
  • Loading branch information
andrjohns authored Jun 5, 2024
1 parent 847c9fe commit 81e2c0b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/R-CMD-check-cross.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- { platform: linux/ppc64le }
- { platform: linux/riscv64 }
- { platform: linux/s390x }
- { platform: FreeBSD }

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -32,9 +33,13 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: docker/setup-qemu-action@master

- name: Setup QEMU
if: matrix.config.platform != 'FreeBSD'
uses: docker/setup-qemu-action@master

- name: Check with clang-18
if: matrix.config.platform != 'FreeBSD'
uses: addnab/docker-run-action@v3
with:
image: andrjohns/quickjsr-cross-tests
Expand All @@ -46,6 +51,7 @@ jobs:
MAKEFLAGS="-j4" _R_CHECK_FORCE_SUGGESTS_="false" R CMD check --as-cran --no-manual --no-vignettes QuickJSR_*.tar.gz
- name: Check with gcc-13
if: matrix.config.platform != 'FreeBSD'
uses: addnab/docker-run-action@v3
with:
image: andrjohns/quickjsr-cross-tests
Expand All @@ -55,3 +61,16 @@ jobs:
echo "CC=gcc-13" >> /etc/R/Makeconf
echo "CXX=g++-13" >> /etc/R/Makeconf
MAKEFLAGS="-j4" _R_CHECK_FORCE_SUGGESTS_="false" R CMD check --as-cran --no-manual --no-vignettes QuickJSR_*.tar.gz
- name: Test in FreeBSD
if: matrix.config.platform == 'FreeBSD'
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y R
run: |
Rscript -e 'install.packages("tinytest", repos="https://cloud.r-project.org")'
R CMD build --no-build-vignettes /root/work/QuickJSR/QuickJSR
_R_CHECK_FORCE_SUGGESTS_="false" R CMD check --as-cran --no-manual --no-vignettes /root/work/QuickJSR/QuickJSR/QuickJSR_*.tar.gz
2 changes: 1 addition & 1 deletion src/quickjs
Submodule quickjs updated 3 files
+5 −1 cutils.h
+8 −0 quickjs-libc.c
+4 −0 quickjs.c

0 comments on commit 81e2c0b

Please sign in to comment.