Merge pull request #24 from Ondsel-Development/push-freecad-submodule
Add action to push submodule to freecad repo
This commit is contained in:
25
.github/workflows/push-freecad.yml
vendored
Normal file
25
.github/workflows/push-freecad.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: push-freecad-submodule
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
push-submodule:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
repository: Ondsel-Development/FreeCAD
|
||||
ref: OndselSolver-testing
|
||||
submodules: true
|
||||
token: ${{ secrets.TOKEN }}
|
||||
|
||||
- run: |
|
||||
cd src/3rdParty/OndselSolver
|
||||
git fetch origin $GITHUB_REF
|
||||
git checkout $GITHUB_SHA
|
||||
|
||||
- run: |
|
||||
git config --global user.name 'github-actions[bot]'
|
||||
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
||||
git commit -am "Update OndselSolver submodule to $GITHUB_SHA"
|
||||
git push
|
||||
@@ -585,8 +585,9 @@ set(ONDSELSOLVER_HEADERS
|
||||
OndselSolver/ZTranslation.h
|
||||
)
|
||||
|
||||
target_sources(OndselSolver PUBLIC "${ONDSELSOLVER_SRC}")
|
||||
target_sources(OndselSolver PUBLIC "${ONDSELSOLVER_HEADERS}")
|
||||
target_sources(OndselSolver PRIVATE
|
||||
"${ONDSELSOLVER_SRC}"
|
||||
"${ONDSELSOLVER_HEADERS}")
|
||||
|
||||
set_target_properties(OndselSolver
|
||||
PROPERTIES VERSION ${PROJECT_VERSION}
|
||||
|
||||
Reference in New Issue
Block a user