Update README.md #37
Workflow file for this run
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
# Workflow builds two test applications, one with and one without luarocks | |
name: Testing | |
on: | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main, 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 }} | |