From b5ec3743c5528aad297ff4827f75a3d02e26cc5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Govert=20Comb=C3=A9e?= Date: Fri, 6 Sep 2024 16:17:57 +0200 Subject: [PATCH 1/2] Create make-mac.yml macos action to build the mac .dmg image file --- .github/workflows/make-mac.yml | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/make-mac.yml diff --git a/.github/workflows/make-mac.yml b/.github/workflows/make-mac.yml new file mode 100644 index 0000000..e37568e --- /dev/null +++ b/.github/workflows/make-mac.yml @@ -0,0 +1,41 @@ +name: Release macOS dmg +on: + workflow_dispatch: + push: + branches: [ GovertDev ] +jobs: + build_on_mac: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@master + with: + node-version: 20 + - name: install dependencies + run: npm install + - name: build + run: npm run make-mac + + # build: + # strategy: + # matrix: + # os: + # [ + # { name: 'linux', image: 'ubuntu-latest' }, + # { name: 'windows', image: 'windows-latest' }, + # { name: 'macos', image: 'macos-latest' }, + # ] + # runs-on: ${{ matrix.os.image }} + # steps: + # - name: Github checkout + # uses: actions/checkout@v4 + # - name: Use Node.js + # uses: actions/setup-node@v4 + # with: + # node-version: 20 + # - run: npm install --save-dev @electron-forge/cli + # - run: npx electron-forge import + # - name: Publish app + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: npm run publish From af62e2cce5dd6abc7322148b525fa3b454b7c983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Govert=20Comb=C3=A9e?= Date: Fri, 6 Sep 2024 16:28:59 +0200 Subject: [PATCH 2/2] Update make-mac.yml needed older python version --- .github/workflows/make-mac.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/make-mac.yml b/.github/workflows/make-mac.yml index e37568e..ba74df2 100644 --- a/.github/workflows/make-mac.yml +++ b/.github/workflows/make-mac.yml @@ -6,8 +6,18 @@ on: jobs: build_on_mac: runs-on: macos-latest + strategy: + matrix: + python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + # You can test your matrix by printing the current Python version + - name: Display Python version + run: python -c "import sys; print(sys.version)" - uses: actions/setup-node@master with: node-version: 20