mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Improve github actions uploads.
- upload zips with and without the Windows 10 UCRT dlls. - only upload one file with jit modules for Windows. - linux appimage has 'linux' in the name.
This commit is contained in:
@@ -31,13 +31,24 @@ jobs:
|
|||||||
- name: Artifact
|
- name: Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: love-x86_64.AppImage
|
name: love-linux-x86_64.AppImage
|
||||||
path: love-${{ github.sha }}.AppImage
|
path: love-${{ github.sha }}.AppImage
|
||||||
windows-os:
|
windows-os:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [Win32, x64]
|
platform: [Win32, x64]
|
||||||
|
install: [compat, modern]
|
||||||
|
include:
|
||||||
|
- platform: Win32
|
||||||
|
arch: x86
|
||||||
|
- platform: x64
|
||||||
|
arch: x64
|
||||||
|
upload_jitmodules: true
|
||||||
|
- install: compat
|
||||||
|
compatdef: -DLOVE_INSTALL_UCRT=ON
|
||||||
|
compatname: -compat
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Megasource
|
- name: Clone Megasource
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -53,19 +64,20 @@ jobs:
|
|||||||
shell: cmd
|
shell: cmd
|
||||||
env:
|
env:
|
||||||
PLATFORM: ${{ matrix.platform }}
|
PLATFORM: ${{ matrix.platform }}
|
||||||
run: cmake -Bbuild -Hmegasource -T v142 -A %PLATFORM% -DCMAKE_INSTALL_PREFIX=%CD%\install
|
run: cmake -Bbuild -Hmegasource -T v142 -A %PLATFORM% ${{ matrix.compatdef }} -DCMAKE_INSTALL_PREFIX=%CD%\install
|
||||||
- name: Install
|
- name: Install
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: cmake --build build --config Release --target install -j2
|
run: cmake --build build --config Release --target install -j2
|
||||||
- name: Artifact
|
- name: Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: love-windows-${{ matrix.platform }}
|
name: love-windows-${{ matrix.arch }}${{ matrix.compatname }}
|
||||||
path: install
|
path: install
|
||||||
- name: Artifact JIT Modules
|
- name: Artifact JIT Modules
|
||||||
|
if: matrix.upload_jitmodules
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: love-windows-jitmodules-${{ matrix.platform }}
|
name: love-windows-jitmodules
|
||||||
path: build/libs/LuaJIT/src/jit/*.lua
|
path: build/libs/LuaJIT/src/jit/*.lua
|
||||||
macOS:
|
macOS:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user