fix analyzer crash #190
This file contains hidden or 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 | |
| on: [push] | |
| jobs: | |
| nattlua: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout the project | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v25 | |
| with: | |
| nix_path: nixpkgs=channel:nixpkgs-unstable | |
| - name: Build LuaJIT | |
| run: | | |
| nix develop --command bash -c "which luajit && luajit -v" | |
| - name: Run nattlua tests | |
| run: | | |
| nix develop --command bash -c "luajit nattlua.lua test" | |
| - name: Build nattlua | |
| run: | | |
| nix develop --command bash -c "luajit nattlua.lua build" | |
| # Rename to nattlua.lua | |
| rm nattlua.lua # remove the original nattlua.lua file first | |
| mv build_output.lua nattlua.lua | |
| - name: Upload nattlua.lua | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nattlua | |
| path: nattlua.lua |