Test2 #38
Workflow file for this run
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: Test2 | |
on: workflow_dispatch | |
env: | |
MAJOR: 0 | |
MINOR: 5 | |
MAN: 0 | |
YEAR: 2024 | |
LUA_V: 5.4.6 | |
MESA_V: 23.1.1 | |
GLEW_V: 2.2.0 | |
SDL_V: 2.30.0 | |
SDL_NET_V: 2.2.0 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: configure SDK | |
uses: mymindstorm/setup-emsdk@v14 | |
- name: download lua source | |
uses: suisei-cn/[email protected] | |
with: | |
url: "http://www.lua.org/ftp/lua-${{ env.LUA_V }}.tar.gz" | |
target: . | |
- name: extract lua | |
run: tar zxf lua-${{ env.LUA_V }}.tar.gz | |
- name: remove main in lua | |
run: rm lua-${{ env.LUA_V }}/src/lua.c lua-${{ env.LUA_V }}/src/luac.c | |
- name: copy lua sources | |
run: cp lua-${{ env.LUA_V }}/src/* ./src/ | |
- name: clear samples | |
run: | | |
rm samples/*.pdf | |
rm samples/*.svg | |
rm samples/*.ps | |
rm samples/*.jpg | |
- name: get make and resources files | |
run: | | |
cp emscripten/Makefile ./Makefile | |
cp emscripten/shell_minimal.html ./shell_minimal.html | |
- name: make | |
run: make | |
- name: create archive | |
run: | | |
zip -r emscripten cadzinho.js cadzinho.wasm cadzinho.html cadzinho.data | |
- name: Upload the result | |
uses: actions/[email protected] | |
with: | |
name: emscripten | |
path: emscripten.zip | |
retention-days: 5 |