ci: workaround cc 1.2.8 build issue for wasm target #280
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: Check so-called "non-API" APIs | |
jobs: | |
check-non-api: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Check non-API | |
run: | | |
cat >tmp.R <<'EOF' | |
e <- new.env() | |
source("https://raw.githubusercontent.com/r-devel/r-svn/master/src/library/tools/R/sotools.R", local = e) | |
cat(e$nonAPI, sep = "|") | |
EOF | |
REGEX=$(Rscript tmp.R) | |
NON_API=$(grep -R -w -E "${REGEX}" ./savvy-ffi/src/ || true) | |
echo "Check result:" | |
echo | |
echo $NON_API | |
echo | |
if [ -n "${NON_API}" ]; then | |
echo 'Found what they call "non-API"!' | |
exit 1 | |
else | |
echo "OK!" | |
fi |