-
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.
Update build-libantimonyjs-github-actions.yml
- Loading branch information
1 parent
f1e7ed8
commit 1bf6b29
Showing
1 changed file
with
19 additions
and
3 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 |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 | ||
|
@@ -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 | ||
|