From c176b30756792ada8e6ae4fd8951d3b02f4184cf Mon Sep 17 00:00:00 2001 From: Gordon MacPherson Date: Wed, 10 Apr 2024 19:38:58 +0100 Subject: [PATCH] disable build until we're ready to enable other platforms --- .github/workflows/engine.yml | 398 +++++++++++++++++------------------ 1 file changed, 199 insertions(+), 199 deletions(-) diff --git a/.github/workflows/engine.yml b/.github/workflows/engine.yml index 1539d24e..e4ef34f6 100644 --- a/.github/workflows/engine.yml +++ b/.github/workflows/engine.yml @@ -132,202 +132,202 @@ jobs: with: path: ./godot-engine/bin/${{ matrix.artifact-name }}.exe destination: ${{ matrix.bucket-name }}/${{steps.vars.outputs.sha_short}}/ - build-macos: - runs-on: "macos-latest" - name: ${{ matrix.name }} - strategy: - fail-fast: false - matrix: - include: - - name: MacOS Editor - cache-name: macos-editor - target: editor - tests: false - strip: true - sconsflags: debug_symbols=no optimize=speed production=yes - dist-app: "macos_tools.app" - packaged-app: "MirrorGodotEditorMac.app" - bin-name: "godot.macos.editor.universal" - bin-name-x86_64: "godot.macos.editor.x86_64" - bin-name-arm64: "godot.macos.editor.arm64" - artifact-bin-name: "Godot" - artifact-name: "MirrorGodotEditorMac.app" - - - name: MacOS Template - cache-name: macos-template - target: template_debug - tests: false - strip: true - sconsflags: debug_symbols=no optimize=speed - dist-app: "macos_template.app" - packaged-app: "macos_template.app" - bin-name: "godot.macos.template_debug.universal" - bin-name-x86_64: "godot.macos.template_debug.x86_64" - bin-name-arm64: "godot.macos.template_debug.arm64" - artifact-bin-name: "godot_macos_release.universal" - artifact-name: "macos_template.app" - - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - - name: Setup python and scons - uses: ./godot-engine/.github/actions/godot-deps - - name: Setup Vulkan SDK - run: | - # Download and install the Vulkan SDK. - curl -L "https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.dmg" -o /tmp/vulkan-sdk.dmg - hdiutil attach /tmp/vulkan-sdk.dmg -mountpoint /Volumes/vulkan-sdk - /Volumes/vulkan-sdk/InstallVulkan.app/Contents/MacOS/InstallVulkan \ - --accept-licenses --default-answer --confirm-command install - - - name: Setup Godot build cache - uses: ./godot-engine/.github/actions/godot-cache - with: - cache-name: ${{ matrix.cache-name }} - continue-on-error: true - - - name: Setup scons (python is already installed on self-hosted runners!) - shell: bash - run: | - python3 -c "import sys; print(sys.version)" - python3 -m ensurepip --upgrade - python3 -m pip install --user scons - scons --version - - - name: Setup cmake - shell: bash - run: | - brew install cmake - cmake --version - - - name: Remove existing binaries - run: | - rm -Rf bin/ - - - name: Compilation (x86_64) - uses: ./.github/actions/godot-build - with: - sconsflags: ${{ env.SCONSFLAGS }} arch=x86_64 - platform: macos - target: ${{ matrix.target }} - tests: ${{ matrix.tests }} - - - name: Compilation (arm64) - uses: ./.github/actions/godot-build - with: - sconsflags: ${{ env.SCONSFLAGS }} arch=arm64 - platform: macos - target: ${{ matrix.target }} - tests: ${{ matrix.tests }} - - - name: Strip binaries - if: ${{ matrix.strip }} - run: | - echo "Stripping binaries" - strip bin/* - - - name: Prepare universal executable - run: | - lipo -create bin/${{ matrix.bin-name-x86_64 }} bin/${{ matrix.bin-name-arm64 }} -output bin/${{ matrix.bin-name }} - chmod -R +x bin/* - - - name: Package in macOS app bundle - shell: sh - run: | - cp -R misc/dist/${{ matrix.dist-app }} bin/${{ matrix.packaged-app }} - cd bin/ - mkdir -p ${{ matrix.packaged-app }}/Contents/MacOS - cp ${{ matrix.bin-name }} ${{ matrix.packaged-app }}/Contents/MacOS/${{ matrix.artifact-bin-name }} - chmod -R +x ${{ matrix.packaged-app }} - xattr -rc ${{ matrix.packaged-app }} - zip -q -9 -r ${{ matrix.artifact-name }}.zip ${{ matrix.packaged-app }} - - - name: Upload artifact - uses: ./.github/actions/upload-artifact - with: - name: "${{ matrix.artifact-name }}.zip" - path: "./godot-engine/bin/${{ matrix.artifact-name }}.zip" - build-linux: - runs-on: "ubuntu-20.04" # MUST run on the old version for GLIBC compatibility - name: ${{ matrix.name }} - strategy: - fail-fast: false - matrix: - include: - - name: Linux Editor - cache-name: linux-editor - target: editor - sconsflags: arch=x86_64 debug_symbols=no optimize=speed production=yes - strip: false - bin: "./bin/godot.linuxbsd.editor.x86_64" - artifact-name: "MirrorGodotEditorLinux.x86_64" - artifact: true - tests: no - - - name: Linux Template - cache-name: linux-template - target: template_debug - strip: true - sconsflags: arch=x86_64 debug_symbols=no optimize=speed - bin: "./bin/godot.linuxbsd.template_debug.x86_64" - artifact-name: "linux_release.x86_64" - artifact: true - tests: no - - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: Setup Godot build cache - uses: ./godot-engine/.github/actions/godot-cache - with: - cache-name: ${{ matrix.cache-name }} - continue-on-error: true - - - name: Setup scons - shell: bash - run: | - python -c "import sys; print(sys.version)" - python -m pip install scons==4.4.0 - scons --version - - - name: Setup GCC problem matcher - uses: ammaraskar/gcc-problem-matcher@master - - - name: Compilation - uses: ./.github/actions/godot-build - with: - sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }} - platform: linuxbsd - target: ${{ matrix.target }} - tests: ${{ matrix.tests }} - - - name: Strip binaries - if: ${{ matrix.strip }} - run: | - strip bin/godot.* - - # - name: Shrink debug symbols - # if: ${{ !matrix.strip }} - # run: | - # # remove duplicate symbols from binary - # dwz ${{ matrix.bin }} -L none -o Middleman.debug - # # make the debug symbols compressed - # objcopy --compress-debug-sections Middleman.debug FinalMan.debug - # # overwrite the original file - # mv FinalMan.debug ${{ matrix.bin }} - - - name: Prepare artifact - if: ${{ matrix.artifact }} - run: | - chmod +x bin/godot.* - mv ${{ matrix.bin }} bin/${{ matrix.artifact-name }} - - - name: Upload artifact - uses: ./.github/actions/upload-artifact - if: ${{ matrix.artifact }} - with: - path: ./godot-engine/bin/${{ matrix.artifact-name }} - name: ${{ matrix.artifact-name }} \ No newline at end of file + # build-macos: + # runs-on: "macos-latest" + # name: ${{ matrix.name }} + # strategy: + # fail-fast: false + # matrix: + # include: + # - name: MacOS Editor + # cache-name: macos-editor + # target: editor + # tests: false + # strip: true + # sconsflags: debug_symbols=no optimize=speed production=yes + # dist-app: "macos_tools.app" + # packaged-app: "MirrorGodotEditorMac.app" + # bin-name: "godot.macos.editor.universal" + # bin-name-x86_64: "godot.macos.editor.x86_64" + # bin-name-arm64: "godot.macos.editor.arm64" + # artifact-bin-name: "Godot" + # artifact-name: "MirrorGodotEditorMac.app" + + # - name: MacOS Template + # cache-name: macos-template + # target: template_debug + # tests: false + # strip: true + # sconsflags: debug_symbols=no optimize=speed + # dist-app: "macos_template.app" + # packaged-app: "macos_template.app" + # bin-name: "godot.macos.template_debug.universal" + # bin-name-x86_64: "godot.macos.template_debug.x86_64" + # bin-name-arm64: "godot.macos.template_debug.arm64" + # artifact-bin-name: "godot_macos_release.universal" + # artifact-name: "macos_template.app" + + # steps: + # - uses: actions/checkout@v4 + # with: + # submodules: recursive + # - name: Setup python and scons + # uses: ./godot-engine/.github/actions/godot-deps + # - name: Setup Vulkan SDK + # run: | + # # Download and install the Vulkan SDK. + # curl -L "https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.dmg" -o /tmp/vulkan-sdk.dmg + # hdiutil attach /tmp/vulkan-sdk.dmg -mountpoint /Volumes/vulkan-sdk + # /Volumes/vulkan-sdk/InstallVulkan.app/Contents/MacOS/InstallVulkan \ + # --accept-licenses --default-answer --confirm-command install + + # - name: Setup Godot build cache + # uses: ./godot-engine/.github/actions/godot-cache + # with: + # cache-name: ${{ matrix.cache-name }} + # continue-on-error: true + + # - name: Setup scons (python is already installed on self-hosted runners!) + # shell: bash + # run: | + # python3 -c "import sys; print(sys.version)" + # python3 -m ensurepip --upgrade + # python3 -m pip install --user scons + # scons --version + + # - name: Setup cmake + # shell: bash + # run: | + # brew install cmake + # cmake --version + + # - name: Remove existing binaries + # run: | + # rm -Rf bin/ + + # - name: Compilation (x86_64) + # uses: ./.github/actions/godot-build + # with: + # sconsflags: ${{ env.SCONSFLAGS }} arch=x86_64 + # platform: macos + # target: ${{ matrix.target }} + # tests: ${{ matrix.tests }} + + # - name: Compilation (arm64) + # uses: ./.github/actions/godot-build + # with: + # sconsflags: ${{ env.SCONSFLAGS }} arch=arm64 + # platform: macos + # target: ${{ matrix.target }} + # tests: ${{ matrix.tests }} + + # - name: Strip binaries + # if: ${{ matrix.strip }} + # run: | + # echo "Stripping binaries" + # strip bin/* + + # - name: Prepare universal executable + # run: | + # lipo -create bin/${{ matrix.bin-name-x86_64 }} bin/${{ matrix.bin-name-arm64 }} -output bin/${{ matrix.bin-name }} + # chmod -R +x bin/* + + # - name: Package in macOS app bundle + # shell: sh + # run: | + # cp -R misc/dist/${{ matrix.dist-app }} bin/${{ matrix.packaged-app }} + # cd bin/ + # mkdir -p ${{ matrix.packaged-app }}/Contents/MacOS + # cp ${{ matrix.bin-name }} ${{ matrix.packaged-app }}/Contents/MacOS/${{ matrix.artifact-bin-name }} + # chmod -R +x ${{ matrix.packaged-app }} + # xattr -rc ${{ matrix.packaged-app }} + # zip -q -9 -r ${{ matrix.artifact-name }}.zip ${{ matrix.packaged-app }} + + # - name: Upload artifact + # uses: ./.github/actions/upload-artifact + # with: + # name: "${{ matrix.artifact-name }}.zip" + # path: "./godot-engine/bin/${{ matrix.artifact-name }}.zip" + # build-linux: + # runs-on: "ubuntu-20.04" # MUST run on the old version for GLIBC compatibility + # name: ${{ matrix.name }} + # strategy: + # fail-fast: false + # matrix: + # include: + # - name: Linux Editor + # cache-name: linux-editor + # target: editor + # sconsflags: arch=x86_64 debug_symbols=no optimize=speed production=yes + # strip: false + # bin: "./bin/godot.linuxbsd.editor.x86_64" + # artifact-name: "MirrorGodotEditorLinux.x86_64" + # artifact: true + # tests: no + + # - name: Linux Template + # cache-name: linux-template + # target: template_debug + # strip: true + # sconsflags: arch=x86_64 debug_symbols=no optimize=speed + # bin: "./bin/godot.linuxbsd.template_debug.x86_64" + # artifact-name: "linux_release.x86_64" + # artifact: true + # tests: no + + # steps: + # - uses: actions/checkout@v4 + # with: + # submodules: recursive + + # - name: Setup Godot build cache + # uses: ./godot-engine/.github/actions/godot-cache + # with: + # cache-name: ${{ matrix.cache-name }} + # continue-on-error: true + + # - name: Setup scons + # shell: bash + # run: | + # python -c "import sys; print(sys.version)" + # python -m pip install scons==4.4.0 + # scons --version + + # - name: Setup GCC problem matcher + # uses: ammaraskar/gcc-problem-matcher@master + + # - name: Compilation + # uses: ./.github/actions/godot-build + # with: + # sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }} + # platform: linuxbsd + # target: ${{ matrix.target }} + # tests: ${{ matrix.tests }} + + # - name: Strip binaries + # if: ${{ matrix.strip }} + # run: | + # strip bin/godot.* + + # # - name: Shrink debug symbols + # # if: ${{ !matrix.strip }} + # # run: | + # # # remove duplicate symbols from binary + # # dwz ${{ matrix.bin }} -L none -o Middleman.debug + # # # make the debug symbols compressed + # # objcopy --compress-debug-sections Middleman.debug FinalMan.debug + # # # overwrite the original file + # # mv FinalMan.debug ${{ matrix.bin }} + + # - name: Prepare artifact + # if: ${{ matrix.artifact }} + # run: | + # chmod +x bin/godot.* + # mv ${{ matrix.bin }} bin/${{ matrix.artifact-name }} + + # - name: Upload artifact + # uses: ./.github/actions/upload-artifact + # if: ${{ matrix.artifact }} + # with: + # path: ./godot-engine/bin/${{ matrix.artifact-name }} + # name: ${{ matrix.artifact-name }} \ No newline at end of file