From d446c01006772eb2177c954ed93678f4cf59d195 Mon Sep 17 00:00:00 2001 From: Scott Harrison Date: Wed, 15 Jan 2025 14:31:18 -0600 Subject: [PATCH] Set Python 2 on New MacOS --- .github/workflows/build.yml | 62 ++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f8d0bba6..6f958dfb0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,35 +70,39 @@ jobs: build_gn: runs-on: macos-14 steps: - - uses: actions/checkout@v2 - - name: prerequisite tools - run: | - git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git depot_tools - echo "${GITHUB_WORKSPACE}/depot_tools" >> $GITHUB_PATH - - name: gclient sync - run: | - python scripts/bootstrap.py - gclient sync - - name: gn gen - run: gn gen out/release --args="angle_enable_gl=false is_debug=false strip_absolute_paths_from_debug_symbols=true" - - name: make - run: ninja -C out/release angle_end2end_tests angle_deqp_gles2_tests hello_triangle - - name: archive - run: | - cp -v out/release/*.dylib ./ - zip --symlinks -r MetalANGLE.dylib.mac.zip include libGLESv2.dylib libGLESv1_CM.dylib libEGL.dylib - rm -v *.dylib - - name: upload - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - files: | - MetalANGLE.dylib.mac.zip - draft: true - prerelease: false - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + - uses: actions/checkout@v2 + - name: Set up Python 2 + uses: actions/setup-python@v4 + with: + python-version: 2.x + - name: prerequisite tools + run: | + git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git depot_tools + echo "${GITHUB_WORKSPACE}/depot_tools" >> $GITHUB_PATH + - name: gclient sync + run: | + python scripts/bootstrap.py + gclient sync + - name: gn gen + run: gn gen out/release --args="angle_enable_gl=false is_debug=false strip_absolute_paths_from_debug_symbols=true" + - name: make + run: ninja -C out/release angle_end2end_tests angle_deqp_gles2_tests hello_triangle + - name: archive + run: | + cp -v out/release/*.dylib ./ + zip --symlinks -r MetalANGLE.dylib.mac.zip include libGLESv2.dylib libGLESv1_CM.dylib libEGL.dylib + rm -v *.dylib + - name: upload + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + MetalANGLE.dylib.mac.zip + draft: true + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + tvos_12: runs-on: macos-14 steps: