Adjusting tests #1
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 | |
# This workflow tests builds targeting LOVE 0.X, not including the linux binaries | |
name: Testing 0.X | |
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: ['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: ['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 }} | |