forked from LuaJIT/LuaJIT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06d74cb
commit 4a73c33
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: LuaJIT-Main | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'v2.1' | ||
pull_request: | ||
branches: [ v2.1 ] | ||
|
||
|
||
jobs: | ||
Build-Release: | ||
strategy: | ||
matrix: | ||
target_system: [ ubuntu-22.04, windows-2022, macos-11 ] | ||
runs-on: ${{ matrix.target_system }} | ||
env: | ||
BUILD_EXT_DYN: ${{ matrix.target_system == 'windows-2022' && '.dll' || '.so' }} | ||
BUILD_EXT_STAT: ${{ matrix.target_system == 'windows-2022' && '.lib' || '.a' }} | ||
BUILD_PREFIX: ${{ matrix.target_system != 'windows-2022' && 'lib' || ''}} | ||
LIB_NAME: ${{ matrix.target_system == 'windows-2022' && 'lua51' || 'luajit' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: TheMrMilchmann/setup-msvc-dev@v3 | ||
if: runner.os == 'Windows' | ||
with: | ||
arch: x64 | ||
|
||
- name: Build | ||
run: | | ||
${{ runner.os == 'macOS' && 'export MACOSX_DEPLOYMENT_TARGET="11.7" && make' || runner.os == 'Linux' && 'make' || 'cd src && ./msvcbuild.bat && cd ..'}} | ||
- name: Make Archive | ||
shell: bash | ||
run: | | ||
mkdir bin include lib lua | ||
cd src | ||
mv jit ../lua | ||
mv ${{ env.BUILD_PREFIX }}${{ env.LIB_NAME }}${{ env.BUILD_EXT_DYN }} ../bin | ||
mv ${{ env.BUILD_PREFIX }}${{ env.LIB_NAME }}${{ env.BUILD_EXT_STAT }} ../lib | ||
mv lauxlib.h lua.h lua.hpp luaconf.h luajit.h lualib.h ../include | ||
cd .. | ||
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on LuaJIT-${{ runner.os }}-.7z COPYRIGHT bin include lib lua README | ||
- name: Upload Release | ||
if: github.event_name != 'pull_request' | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: Stable-CI | ||
files: LuaJIT-${{ runner.os }}-.7z | ||
body: | | ||
CI Build for Dreamweave LuaJIT Fork | ||
- name: Upload Artifact | ||
if: github.event_name == 'pull_request' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: | | ||
COPYRIGHT | ||
bin | ||
include | ||
lib | ||
lua | ||
README | ||
name: LuaJIT-${{ runner.os }} |