From 184941de8f645a63f4a17442e455baba11721af2 Mon Sep 17 00:00:00 2001 From: PigeonsHouse Date: Fri, 8 Dec 2023 19:21:20 +0900 Subject: [PATCH] =?UTF-8?q?update:=20macintosh=E5=90=91=E3=81=91=E3=81=AE?= =?UTF-8?q?=E3=83=AA=E3=83=AA=E3=83=BC=E3=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/nightly-release.yml | 69 ++++++++++++++------------- 1 file changed, 36 insertions(+), 33 deletions(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 3da6d1b..2c99dcd 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -33,31 +33,34 @@ jobs: name: release-linux path: dist/main - # build_macintosh: - # runs-on: macOS-latest + build_macintosh: + runs-on: macOS-latest - # steps: - # - name: Checkout - # uses: actions/checkout@v2 + steps: + - name: Checkout + uses: actions/checkout@v2 - # - name: Set up Python 3.10 - # uses: actions/setup-python@master - # with: { python-version: '3.10' } + - name: Set up Python 3.10 + uses: actions/setup-python@master + with: { python-version: '3.10' } - # - name: Upgrade pip - # run: python -m pip install --upgrade pip pipenv + - name: Upgrade pip + run: python -m pip install --upgrade pip pipenv + + - name: Install library + run: pipenv sync - # - name: Install library - # run: pipenv sync + - name: Install additional library + run: pipenv install macholib - # - name: Build - # run: pipenv run pyinstaller ./src/main.py -F + - name: Build + run: pipenv run pyinstaller ./src/main.py -F - # - name: Upload - # uses: actions/upload-artifact@v1 - # with: - # name: release-mac - # path: dist/main + - name: Upload + uses: actions/upload-artifact@v1 + with: + name: release-mac + path: dist/main build_windows: runs-on: windows-latest @@ -89,7 +92,7 @@ jobs: path: dist/main.exe release: - needs: [build_linux, build_windows] + needs: [build_linux, build_macintosh, build_windows] runs-on: ubuntu-latest steps: @@ -98,10 +101,10 @@ jobs: with: name: release-linux - # - name: Download Mac - # uses: actions/download-artifact@v1 - # with: - # name: release-mac + - name: Download Mac + uses: actions/download-artifact@v1 + with: + name: release-mac - name: Download Windows uses: actions/download-artifact@v1 @@ -135,15 +138,15 @@ jobs: asset_name: release-linux.tar.gz asset_content_type: application/gzip - # - name: Append macintosh binary - # uses: actions/upload-release-asset@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # upload_url: ${{ steps.create_release.outputs.upload_url }} - # asset_path: ./release-mac.tar.gz - # asset_name: release-mac.tar.gz - # asset_content_type: application/gzip + - name: Append macintosh binary + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./release-mac.tar.gz + asset_name: release-mac.tar.gz + asset_content_type: application/gzip - name: Append windows binary uses: actions/upload-release-asset@v1