Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(CI): Add CI for JIT #1

Merged
merged 29 commits into from
Oct 18, 2023
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d446bb9
Feat(CI): Add CI for JIT
magicaldave Oct 18, 2023
8531a3a
Fix(CI): Change branch name
magicaldave Oct 18, 2023
ec70d43
Fix(CI): Change branch name again
magicaldave Oct 18, 2023
89da476
Fix(CI): Don't filter action by branch
magicaldave Oct 18, 2023
6baa150
Fix(CI): Place action in correct folder
magicaldave Oct 18, 2023
c308621
Fix(CI): Don't do build configs for LuaJIT, and switch to correct
magicaldave Oct 18, 2023
d2305bf
Fix(CI): Baby steps
magicaldave Oct 18, 2023
12eee3c
Fix(CI): ls is useless on windows
magicaldave Oct 18, 2023
d1f50d9
Fix(CI): Use MSVC prompt for windows builds
magicaldave Oct 18, 2023
633b392
Fix(CI): For windows, actually change to src before running build
magicaldave Oct 18, 2023
37f1e71
Fix(CI): Refer to current dir when building (Windows)
magicaldave Oct 18, 2023
bb1a95a
Feat(CI): Make the build archive
magicaldave Oct 18, 2023
5d25a0f
Fix(CI): Syntax issue in MSVC build
magicaldave Oct 18, 2023
c921ad5
Fix(CI): Syntax issue in build_prefix
magicaldave Oct 18, 2023
17eeb44
Fix(CI): pull libs from src/
magicaldave Oct 18, 2023
111a62c
Fix(CI): Correct directories for archives
magicaldave Oct 18, 2023
e9bb517
Fix(CI): Go back to original dir, before making archive
magicaldave Oct 18, 2023
79c18e7
Fix(CI): Use md for windows
magicaldave Oct 18, 2023
77ced43
Fix(CI): Add path separators to md command
magicaldave Oct 18, 2023
d6d8f62
Fix(CI): Run archive script in bash
magicaldave Oct 18, 2023
22028d4
Fix(CI): Good ol' mkdir
magicaldave Oct 18, 2023
8002370
TEST(CI): where's all the data
magicaldave Oct 18, 2023
b0b5248
Fix(CI): Correct platform-specific names
magicaldave Oct 18, 2023
d1c70c5
Fix(CI): Correct os check
magicaldave Oct 18, 2023
844dd52
Fix(CI): Correct missed $
magicaldave Oct 18, 2023
74c16cd
Cleanup(CI): Remove dead code
magicaldave Oct 18, 2023
e874aa1
Feat(CI): Add macos back
magicaldave Oct 18, 2023
a9dc723
Fix(CI): Set OSX target for LuaJIT
magicaldave Oct 18, 2023
122fd54
Fix(CI): Correct version string for macOS
magicaldave Oct 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/LuaJIT.yml
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 }}