Skip to content

Commit

Permalink
Add fix for the package_native_routine_registration_skeleton bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann D. Gaebler committed Jan 21, 2024
1 parent eb6b014 commit 2424c28
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/lto-bug-fix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: LTO bug fix

on: [push]

jobs:
modify-and-commit:
permissions:
contents: write
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Modify cpp11.cpp File
run: |
sed -i 's/extern SEXP run_testthat_tests(void \*);/extern SEXP run_testthat_tests(SEXP);/' src/cpp11.cpp
- name: Check for Changes
id: check_changes
run: |
git diff
if git diff --quiet; then
echo "No changes to commit"
exit 0
else
echo "changes=true" >> $GITHUB_ENV
fi
- name: Commit and Push
if: env.changes == 'true'
env:
NAME: Johann D. Gaebler
EMAIL: me@jgaeb.com
run: |
git config --global user.name "$NAME"
git config --global user.email "$EMAIL"
git add src/cpp11.cpp
git commit -m "Rewrite faulty signature in $GITHUB_SHA"
git push

0 comments on commit 2424c28

Please sign in to comment.