builds godot
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
name: Build godot 2d templates

on:
  workflow_dispatch:
  push:
    branches:
      - main

env:
  branch: 3.x
  tools: no
  flags: disable_3d=yes

jobs:
  linux:
    name: Build linux templates
    runs-on: ubuntu-20.04
    strategy:
      matrix:
        target: [release, release_debug]
        bits: [32, 64]
    steps:
      - name: Compilation
        uses: bend-n/godot-2d-builds/.github/actions/build-godot@main
        with:
          target: ${{ matrix.target }}
          flags: -bits=${{ matrix.bits }} ${{ env.flags }}
          platform: x11

      - name: Upload artifact
        uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main

  windows:
    strategy:
      matrix:
        target: [release, release_debug]
        bits: [32, 64]
    name: Build windows templates
    runs-on: windows-latest
    steps:
      - name: Compilation
        uses: bend-n/godot-2d-builds/.github/actions/build-godot@main
        with:
          target: ${{ matrix.target }}
          flags: -bits=${{ matrix.bits }} ${{ env.flags }}
          platform: windows

      - name: Upload artifact
        uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main

  android:
    name: Build android templates
    runs-on: ubuntu-20.04
    strategy:
      matrix:
        target: [release, release_debug]
        bits: [32, 64]
    steps:
      - name: Set up Java 11
        uses: actions/setup-java@v1
        with:
          java-version: 11

      - name: Compilation (armv7)
        uses: bend-n/godot-2d-builds/.github/actions/build-godot@main
        with:
          target: ${{ matrix.target }}
          flags: -bits=${{ matrix.bits }} android_arch=armv7 ${{ env.flags }}
          platform: android

      - name: Compilation (arm64v8)
        uses: bend-n/godot-2d-builds/.github/actions/build-godot@main
        with:
          target: ${{ matrix.target }}
          flags: -bits=${{ matrix.bits }} android_arch=arm64v8 ${{ env.flags }}
          platform: android

      - name: Generate Godot templates
        run: |
          cd godot
          (cd platform/android/java && ./gradlew generateGodotTemplates)
          ls -l bin/

      - name: Upload artifact
        uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main

  macos:
    strategy:
      matrix:
        target: [release, release_debug]
        bits: [32, 64]
    name: Build macos templates
    runs-on: macos-latest
    steps:
      - name: Compilation
        uses: bend-n/godot-2d-builds/.github/actions/build-godot@main
        with:
          flags: -bits=${{ matrix.bits }} ${{ env.flags }}
          target: ${{ matrix.target }}
          platform: macos

      - name: Upload artifact
        uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main

  javascript:
    strategy:
      matrix:
        target: [release, release_debug]
        bits: [32, 64]
    name: Build javascript templates
    runs-on: ubuntu-20.04
    steps:
      - name: Set up Emscripten 3.1.10
        uses: mymindstorm/setup-emsdk@v10
        with:
          version: 3.1.10

      - name: Verify Emscripten setup
        run: |
          emcc -v

      - name: Compilation
        uses: bend-n/godot-2d-builds/.github/actions/build-godot@main
        with:
          target: ${{ matrix.target }}
          flags: -bits=${{ matrix.bits }} ${{ env.flags }}
          platform: javascript

      - name: Upload artifact
        uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main

  bundle:
    needs: [javascript, macos, windows, linux, android]
    name: Bundle up all templates
    runs-on: ubuntu-latest
    steps:
      - name: Download all artifacts
        uses: actions/download-artifact@v2

      - name: Upload artifact
        uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main
        with:
          name: templates.tpz
          path: templates.tpz