From 7a50c55af873209f2d41f95e55f2c5f7a78b326b Mon Sep 17 00:00:00 2001 From: Henri Wahl Date: Wed, 14 Aug 2024 12:43:39 +0200 Subject: [PATCH] debug macos processor --- .github/workflows/build-release-latest.yml | 22 ++++++++++++++++++++-- build/build.py | 2 ++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release-latest.yml b/.github/workflows/build-release-latest.yml index 09ee948b..d7eafe90 100644 --- a/.github/workflows/build-release-latest.yml +++ b/.github/workflows/build-release-latest.yml @@ -208,11 +208,29 @@ jobs: if-no-files-found: error name: ${{ github.job }} - macos: + macos-intel: runs-on: macos-12 needs: test steps: - uses: actions/checkout@v4 + - run: python -c "import platform; print(platform.processor())" + - run: pip3 install --no-warn-script-location -r build/requirements/macos.txt + - run: cd ${{ github.workspace }}/build; python3 build.py + env: + PYTHONPATH: ${{ github.workspace }} + - uses: actions/upload-artifact@v4 + with: + path: build/*.dmg + retention-days: 1 + if-no-files-found: error + name: ${{ github.job }} + + macos-arm: + runs-on: macos-14 + needs: test + steps: + - uses: actions/checkout@v4 + - run: python -c "import platform; print(platform.processor())" - run: pip3 install --no-warn-script-location -r build/requirements/macos.txt - run: cd ${{ github.workspace }}/build; python3 build.py env: @@ -310,7 +328,7 @@ jobs: repo-debian: runs-on: ubuntu-latest # try to avoid race condition and start uploading only after the last install package has been build - needs: [debian, fedora-37, fedora-38, fedora-39, fedora-40, fedora-41, rhel-9, macos, windows-32, windows-64, windows-64-debug] + needs: [debian, fedora-37, fedora-38, fedora-39, fedora-40, fedora-41, rhel-9, macos-intel, macos-arm, windows-32, windows-64, windows-64-debug] env: family: debian steps: diff --git a/build/build.py b/build/build.py index 01e16220..75be8b7e 100644 --- a/build/build.py +++ b/build/build.py @@ -47,6 +47,8 @@ DIST_NAME, DIST_VERSION, DIST_ID = get_distro() +#MACOS_PROCESSOR = platform.processor() + # depending on debug build or not a console window will be shown or not if len(sys.argv) > 1 and sys.argv[1] == 'debug': DEBUG = True