Skip to content

move ffi parsing and analyzing code to its own thing to prepare repla… #69

move ffi parsing and analyzing code to its own thing to prepare repla…

move ffi parsing and analyzing code to its own thing to prepare repla… #69

Workflow file for this run

name: build
on: [push]
jobs:
nattlua:
runs-on: ubuntu-latest
steps:
- name: checkout the project
uses: actions/checkout@master
- name: checkout latest luajit 2.1
uses: actions/checkout@master
with:
repository: LuaJIT/LuaJIT
ref: v2.1
path: luajit
- name: build and install luajit
run: cd luajit && make && sudo make install && cd ..
- name: run nattlua tests
run: luajit nattlua.lua test
- name: build nattlua to build_output.lua and run tests with it
run: luajit nattlua.lua build
- name: replace nattlua.lua with build_output.lua for upload
run: rm nattlua.lua && mv build_output.lua nattlua.lua
- name: upload nattlua.lua
uses: actions/upload-artifact@v3
with:
name: nattlua
path: nattlua.lua