From 11d75d02286386cb40d7b452a79f27c29da7b819 Mon Sep 17 00:00:00 2001 From: Robusta Runner Date: Sun, 23 Jun 2024 19:39:34 +0300 Subject: [PATCH] Add x86 macos builds --- .github/workflows/build-on-release.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-on-release.yml b/.github/workflows/build-on-release.yml index 7289a973..b3493929 100644 --- a/.github/workflows/build-on-release.yml +++ b/.github/workflows/build-on-release.yml @@ -8,7 +8,8 @@ jobs: build: strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + # we build on macos-13 for x86 builds + os: [ubuntu-latest, windows-latest, macos-latest, macos-13] runs-on: ${{ matrix.os }} @@ -32,7 +33,7 @@ jobs: sudo apt-get install -y binutils - name: Install the Apple certificate and provisioning profile - if: matrix.os == 'macos-latest' + if: matrix.os == 'macos-latest' || matrix.os == 'macos-13' env: BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }} P12_PASSWORD: ${{ secrets.P12_PASSWORD }} @@ -62,7 +63,7 @@ jobs: cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles - name: Set version in code (Unix) - if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' + if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' || matrix.os == 'macos-13' run: | awk 'NR==3{$0="__version__ = \"'${{ github.ref_name }}'\""}1' ./robusta_krr/__init__.py > temp && mv temp ./robusta_krr/__init__.py cat ./robusta_krr/__init__.py @@ -79,7 +80,7 @@ jobs: GITHUB_REF_NAME: ${{ github.ref_name }} - name: Build with PyInstaller - if: matrix.os == 'macos-latest' + if: matrix.os == 'macos-latest' shell: bash run: | pyinstaller --target-architecture arm64 krr.py @@ -97,7 +98,7 @@ jobs: cp ./intro.txt ./dist/krr/intro.txt - name: Zip the application (Unix) - if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' + if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' || matrix.os == 'macos-13' run: | cd dist zip -r krr-${{ matrix.os }}-${{ github.ref_name }}.zip krr @@ -129,7 +130,7 @@ jobs: path: ./krr-${{ matrix.os }}-${{ github.ref_name }}.zip - name: Clean up keychain and provisioning profile - if: (matrix.os == 'macos-latest') && always() + if: (matrix.os == 'macos-latest' || matrix.os == 'macos-13') && always() run: | security delete-keychain $RUNNER_TEMP/app-signing.keychain-db rm ~/Library/MobileDevice/Provisioning\ Profiles/build_pp.mobileprovision