bartjuw is building libantimonyjs #29
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
name: build-libantimoyjs-github-actions | |
run-name: ${{ github.actor }} is building libantimonyjs | |
on: [push] | |
jobs: | |
build-new-version-antimonyjs: | |
runs-on: ubuntu-latest | |
env: | |
EMSDK: $GITHUB_WORKSPACE/emsdk | |
EMSDK_NODE: $GITHUB_WORKSPACE/emsdk/node/16.20.0_64bit/bin/node | |
LIBANTIMONYJS_DIR: $GITHUB_WORKSPACE/libantimonyjs | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ls | |
- name: get emscripten | |
run: git clone https://github.com/emscripten-core/emsdk.git | |
- name: list files | |
run: ls | |
working-directory: emsdk | |
- name: change emsdk script permissions | |
run: chmod +x emsdk | |
working-directory: emsdk | |
- name: install emscripten sdk | |
run: ./emsdk install 3.1.20 | |
working-directory: emsdk | |
- name: activate emscripten | |
run: ./emsdk activate 3.1.20 | |
working-directory: emsdk | |
- run: pwd | |
- run: echo "$GITHUB_WORKSPACE/emsdk/upstream/emscripten" >> $GITHUB_PATH | |
- run: echo "$GITHUB_WORKSPACE/emsdk" >> $GITHUB_PATH | |
- name: set permissions for emsdk_env.sh, not necessary?? | |
run: chmod +x emsdk/emsdk_env.sh | |
- name: Set up emscripten environment, does not work, remove. | |
run: ./emsdk_env.sh | |
working-directory: emsdk | |
- run: echo $GITHUB_PATH | |
- name: confirm emscripten works | |
run: emcc -v | |
- run: echo $PATH | |
- run: echo $EMSDK | |
- run: echo $EMSDK_NODE | |
- run: echo $LIBANTIMONY_JS | |
- run: chmod +x scripts/buildLibAntjs | |
- name: Run libantimony build script | |
run: scripts/buildLibAntjs | |