diff options
| author | Adam Scott <ascott.ca@gmail.com> | 2023-12-01 13:39:09 -0500 |
|---|---|---|
| committer | Adam Scott <ascott.ca@gmail.com> | 2024-01-17 13:58:29 -0500 |
| commit | bd70b8e1f643dbf7252be9bc367e0de0f82d722d (patch) | |
| tree | de81ebb037ede5994d3e817a2a788488d0f47977 /.github/workflows | |
| parent | 107f2961ccfac179af7682eb5f6e7ea91e80040c (diff) | |
| download | redot-engine-bd70b8e1f643dbf7252be9bc367e0de0f82d722d.tar.gz | |
Add THREADS_ENABLED macro in order to compile Godot to run on the main thread
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/web_builds.yml | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/.github/workflows/web_builds.yml b/.github/workflows/web_builds.yml index d314991fee..9524b5260b 100644 --- a/.github/workflows/web_builds.yml +++ b/.github/workflows/web_builds.yml @@ -17,7 +17,24 @@ concurrency: jobs: web-template: runs-on: "ubuntu-22.04" - name: Template (target=template_release) + name: ${{ matrix.name }} + strategy: + fail-fast: false + matrix: + include: + - name: Template w/ threads (target=template_release, threads=yes) + cache-name: web-template + target: template_release + sconsflags: threads=yes + tests: false + artifact: true + + - name: Template w/o threads (target=template_release, threads=no) + cache-name: web-nothreads-template + target: template_release + sconsflags: threads=no + tests: false + artifact: true steps: - uses: actions/checkout@v4 @@ -34,6 +51,8 @@ jobs: - name: Setup Godot build cache uses: ./.github/actions/godot-cache + with: + cache-name: ${{ matrix.cache-name }} continue-on-error: true - name: Setup python and scons @@ -42,10 +61,13 @@ jobs: - name: Compilation uses: ./.github/actions/godot-build with: - sconsflags: ${{ env.SCONSFLAGS }} + sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }} platform: web - target: template_release - tests: false + target: ${{ matrix.target }} + tests: ${{ matrix.tests }} - name: Upload artifact uses: ./.github/actions/upload-artifact + if: ${{ matrix.artifact }} + with: + name: ${{ matrix.cache-name }} |
