-
Notifications
You must be signed in to change notification settings - Fork 10
76 lines (74 loc) · 2.54 KB
/
test_workflow_0.x.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# 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 }}