Skip to content

FIX: We ship luajit2 now #72

FIX: We ship luajit2 now

FIX: We ship luajit2 now #72

Workflow file for this run

name: CJSON-Main
on:
workflow_dispatch:
push:
branches:
- 'master'
pull_request:
branches: [ master ]
jobs:
CJSON_MASTER:
strategy:
matrix:
target_system: [ ubuntu-22.04, windows-2022, macos-11 ]
runs-on: ${{ matrix.target_system }}
env:
BUILD_EXT: ${{ matrix.target_system == 'windows-2022' && '.dll' || '.so' }}
BUILD_DIR: ${{ matrix.target_system == 'windows-2022' && 'D:/a/lua-cjson/lua-cjson' || '/home/runner/work/lua-cjson/lua-cjson' }}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
if: runner.os == 'Windows'
with:
msystem: UCRT64
update: true
install: git mingw-w64-ucrt-x86_64-gcc
- name: Prime ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.target_system }}
max-size: 1000M
- name: Cache LuaJIT
id: cache-Lua
uses: actions/cache@v3
with:
path: |
LuaJIT
key: ${{ runner.os }}-Lua
- name: Get Deps (LuaJIT)
shell: bash
if: steps.cache-Lua.outputs.cache-hit != 'true'
run: |
curl -o LuaJIT.7z -L https://github.com/DreamWeave-MP/luajit2/releases/download/Stable-CI/LuaJIT-${{ runner.os }}.7z
7z x -y LuaJIT.7z -oLuaJIT/
- name: Configure
if: runner.os != 'Windows'
shell: bash
run: |
LUA_DIR=LuaJIT/ cmake .
- name: Configure
if: runner.os == 'Windows'
shell: bash
run: |
LUA_DIR=LuaJIT/ CC=$(which gcc) cmake . -G 'MinGW Makefiles'
- name: Build
run: |
cmake --build .
- name: Prep Release
run: |
mv cjson${{ env.BUILD_EXT }} cjson-${{ runner.os }}${{ env.BUILD_EXT }}
- name: Upload Release
if: github.event_name != 'pull_request'
uses: softprops/action-gh-release@v2
with:
tag_name: Stable-CI
files: cjson-${{ runner.os }}${{ env.BUILD_EXT }}
body: |
CI Build for Dreamweave IO2 fork
- name: Upload Artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v6
with:
name: cjson-${{ runner.os }}
path: cjson-${{ runner.os }}${{ env.BUILD_EXT }}