core: import the rules core (ygopro-core 973672dc + fork patches)
The vendored ocgcore from the Unity repo (Tools/YGOLegacy/ocgcore at dev HEAD). Upstream is nanahira/ygopro-core at 973672dc9ce7cb49f47173277ab1ad0e318b7593; the seven files that differ from it carry the fork's core patches, already applied: 0001 face-down Token setcode, 0004 effect damage step outside a chain, 0008 Sandbox god mode, 0015 tag first seat holds the hand, 0022 attack preview, 0024 attack preview legality. Generated build/ output is left out. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
commit
26f9baf9b4
47 files changed
+40899
No files matched your search
Vendored
+121
@@ -0,0 +1,121 @@
|
||||
name: Automated Test Build
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build-windows:
|
||||
runs-on: windows-2022
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Download lua
|
||||
id: lua
|
||||
uses: mercury233/action-cache-download-file@0e2b8bab566270adae95bd3cd298744402b667eb # v1.1.0
|
||||
with:
|
||||
url: https://www.lua.org/ftp/lua-5.4.8.tar.gz
|
||||
|
||||
- name: Lua
|
||||
run: |
|
||||
tar -xzf ${{ steps.lua.outputs.filepath }}
|
||||
move lua-5.4.8 lua
|
||||
|
||||
- name: Download premake
|
||||
id: premake
|
||||
uses: mercury233/action-cache-download-file@0e2b8bab566270adae95bd3cd298744402b667eb
|
||||
with:
|
||||
url: https://github.com/premake/premake-core/releases/download/v5.0.0-beta7/premake-5.0.0-beta7-windows.zip
|
||||
|
||||
- name: Premake
|
||||
run: |
|
||||
mkdir premake-5
|
||||
tar -C premake-5 -xzf ${{ steps.premake.outputs.filepath }}
|
||||
copy premake\lua.lua lua\premake5.lua
|
||||
copy premake\dll.lua dll.lua
|
||||
.\premake-5\premake5.exe vs2022 --file=dll.lua
|
||||
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v3
|
||||
|
||||
- name: Build x32
|
||||
run: |
|
||||
msbuild build\ocgcoredll.sln /m /t:Build /p:"Configuration=Release;Platform=Win32"
|
||||
|
||||
- name: Build x64
|
||||
run: |
|
||||
msbuild build\ocgcoredll.sln /m /t:Build /p:"Configuration=Release;Platform=x64"
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: ocgcore-windows
|
||||
path: |
|
||||
build/bin/x32/Release/ocgcore.dll
|
||||
build/bin/x64/Release/ocgcore.dll
|
||||
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y gcc-multilib g++-multilib
|
||||
|
||||
- name: Download lua
|
||||
id: lua
|
||||
uses: mercury233/action-cache-download-file@0e2b8bab566270adae95bd3cd298744402b667eb
|
||||
with:
|
||||
url: https://www.lua.org/ftp/lua-5.4.8.tar.gz
|
||||
|
||||
- name: Lua
|
||||
run: |
|
||||
tar -xzf ${{ steps.lua.outputs.filepath }}
|
||||
mv lua-5.4.8 lua
|
||||
|
||||
- name: Download premake
|
||||
id: premake
|
||||
uses: mercury233/action-cache-download-file@0e2b8bab566270adae95bd3cd298744402b667eb
|
||||
with:
|
||||
url: https://github.com/premake/premake-core/releases/download/v5.0.0-beta7/premake-5.0.0-beta7-linux.tar.gz
|
||||
|
||||
- name: Premake
|
||||
run: |
|
||||
mkdir premake-5
|
||||
tar -C premake-5 -xzf ${{ steps.premake.outputs.filepath }}
|
||||
cp premake/lua.lua lua/premake5.lua
|
||||
cp premake/dll.lua dll.lua
|
||||
chmod +x premake-5/premake5
|
||||
./premake-5/premake5 gmake --file=dll.lua
|
||||
|
||||
- name: Build x32
|
||||
run: |
|
||||
cd build
|
||||
make -j $(nproc) config=release_x32
|
||||
cd ..
|
||||
|
||||
- name: Build x64
|
||||
run: |
|
||||
cd build
|
||||
make -j $(nproc) config=release_x64
|
||||
cd ..
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: ocgcore-linux
|
||||
path: |
|
||||
build/bin/x32/Release/libocgcore.so
|
||||
build/bin/x64/Release/libocgcore.so
|
||||
Reference in new issue
Block a user