Skip to content

Commit

Permalink
Update build-libantimonyjs-github-actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NSR-Physiome committed Nov 13, 2023
1 parent f1e7ed8 commit 1bf6b29
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build-libantimonyjs-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
runs-on: ubuntu-latest
env:
EMSDK: emsdk
EMSCRIPTEN_VERS: '3.1.20'
EMSDK_NODE: emsdk/node/16.20.0_64bit/bin/node
SBML_VERS: ${{ inputs.libsbml_version }}
ANT_VERS: ${{ inputs.antimony_version }}
Expand All @@ -27,10 +28,10 @@ jobs:
run: chmod +x emsdk
working-directory: emsdk
- name: install emscripten sdk
run: ./emsdk install 3.1.20
run: ./emsdk install $EMSCRIPTEN_VERS
working-directory: emsdk
- name: activate emscripten
run: ./emsdk activate 3.1.20
run: ./emsdk activate $EMSCRIPTEN_VERS
working-directory: emsdk
- run: echo "$GITHUB_WORKSPACE/emsdk/upstream/emscripten" >> $GITHUB_PATH
- run: echo "$GITHUB_WORKSPACE/emsdk" >> $GITHUB_PATH
Expand Down Expand Up @@ -116,11 +117,26 @@ jobs:
- name: Copy libantimonyjs to release dir
run: cp libantimony.* $GITHUB_WORKSPACE/release/v$ANT_VERS
working-directory: install
- name: generate ReleaseInfo.txt
run: echo "libantimonyjs release $ANT_VERS" >> v$ANT_VERS/ReleaseInfo.txt
working-directory: install
- run: echo "libSBML source- $SBML_VERS" >> v$ANT_VERS/ReleaseInfo.txt
working-directory: install
- run: echo "Antimony source- $ANT_VERS" >> v$ANT_VERS/ReleaseInfo.txt
working-directory: install
- run: echo "Emscripten version- $EMSCRIPTEN_VERS" >> v$ANT_VERS/ReleaseInfo.txt
working-directory: install
- run: echo "Following methods are available- From Antimony library - _loadString, _loadAntimonyString, _loadSBMLString, _clearPreviousLoads, _getAntimonyString, _freeAll,
_getSBMLString, _getCompSBMLString, _getLastError, _getWarnings, _getSBMLInfoMessages, _getSBMLWarnings. From Emscripten - _malloc, _free, ccall, cwrap, allocateUTF8, UTF8ToString." >> v$ANT_VERS/ReleaseInfo.txt
working-directory: install
- name: Copy libantimonyjs to docs dir
run: cp -f libantimony.* $GITHUB_WORKSPACE/docs
working-directory: install
- run: |
date > generated.txt
git config user.name github-actions
git config user.email [email protected]
git add v$ANT_VERS/libantimony.js v$ANT_VERS/libantimony.wasm
git add v$ANT_VERS/libantimony.js v$ANT_VERS/libantimony.wasm v$ANT_VERS/ReleaseInfo.txt
git commit -m "new build for antimony v$ANT_VERS"
git push
working-directory: release
Expand Down

0 comments on commit 1bf6b29

Please sign in to comment.