-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Here we merge the dev and master test workflows and separate the older and newer love2d tests.
- Loading branch information
Showing
5 changed files
with
173 additions
and
166 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,153 @@ | ||
# Workflow builds two test applications, one with and one without luarocks | ||
name: Testing | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
push: | ||
branches: [ master, dev ] | ||
jobs: | ||
# Build the Hello World test application | ||
build-hello_world: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
love_version: ['11.5', '11.4', '11.3', '11.2'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./ # User current branch | ||
id: love-build | ||
with: | ||
app_name: 'hello_world' | ||
love_version: ${{ matrix.love_version }} | ||
source_dir: 'tests/hello_world' | ||
# Upload the resulting artifacts | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: hw_macos-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.macos-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: hw_win32-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.win32-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: hw_win64-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.win64-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: hw_love-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.love-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: hw_linux_x86_64-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.linux_x86_64-filename }} | ||
|
||
# Build the Hello World test application for older love_versions | ||
# This job leaves out the linux AppImage upload which is not available | ||
build-hello_world-0_x: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
love_version: ['0.10.2', '0.9.2', '0.8.0'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./ # User current branch | ||
id: love-build | ||
with: | ||
app_name: 'hello_world' | ||
love_version: ${{ matrix.love_version }} | ||
source_dir: 'tests/hello_world' | ||
# Upload the resulting artifacts | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: hw_macos-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.macos-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: hw_win32-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.win32-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: hw_win64-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.win64-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: hw_love-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.love-filename }} | ||
|
||
# Build the Game of Life test application | ||
build-game_of_life: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
love_version: ['11.5', '11.4', '11.3', '11.2'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./ # Use current branch | ||
id: love-build | ||
with: | ||
app_name: 'game_of_life' | ||
love_version: ${{ matrix.love_version }} | ||
source_dir: 'tests/game_of_life' | ||
dependencies: 'tests/game_of_life/dependencies-1-1.rockspec' | ||
# Upload the resulting artifacts | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: gol_macos-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.macos-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: gol_win32-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.win32-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: gol_win64-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.win64-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: gol_love-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.love-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: gol_linux_x86_64-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.linux_x86_64-filename }} | ||
|
||
|
||
# Build the Game of Life test application for older love versions | ||
# This job leaves out the linux AppImage upload which is not available | ||
build-game_of_life-0_x: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
love_version: ['0.10.2', '0.9.2', '0.8.0'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./ # Use current branch | ||
id: love-build | ||
with: | ||
app_name: 'game_of_life' | ||
love_version: ${{ matrix.love_version }} | ||
source_dir: 'tests/game_of_life' | ||
dependencies: 'tests/game_of_life/dependencies-1-1.rockspec' | ||
# Upload the resulting artifacts | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: gol_macos-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.macos-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: gol_win32-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.win32-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: gol_win64-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.win64-filename }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: gol_love-build-${{ matrix.love_version}} | ||
path: ${{ steps.love-build.outputs.love-filename }} | ||
|
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
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