Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
update: macintosh向けのリリース
Browse files Browse the repository at this point in the history
  • Loading branch information
PigeonsHouse committed Dec 8, 2023
1 parent be35333 commit e2dfcd0
Showing 1 changed file with 39 additions and 35 deletions.
74 changes: 39 additions & 35 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@master
Expand All @@ -33,38 +33,41 @@ 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@v3

# - 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: Build
# run: pipenv run pyinstaller ./src/main.py -F
- name: Install additional library
run: pipenv install macholib

# - name: Upload
# uses: actions/upload-artifact@v1
# with:
# name: release-mac
# path: dist/main
- name: Build
run: pipenv run pyinstaller ./src/main.py -F

- name: Upload
uses: actions/upload-artifact@v1
with:
name: release-mac
path: dist/main

build_windows:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@master
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -123,6 +126,7 @@ jobs:
- name: Zip
run: |
tar -C release-linux -pczvf release-linux.tar.gz main
tar -C release-mac -pczvf release-mac.tar.gz main
zip --junk-paths release-win ./release-win/main.exe
- name: Append linux binary
Expand All @@ -135,15 +139,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
Expand Down

0 comments on commit e2dfcd0

Please sign in to comment.