-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fix for the package_native_routine_registration_skeleton bug.
- 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.
There are no files selected for viewing
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
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 | ||