Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirasawaSama committed Dec 22, 2023
1 parent 33d6802 commit a85c4d9
Showing 1 changed file with 59 additions and 3 deletions.
62 changes: 59 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ jobs:
shell: bash

- name: Package
run: cd build && mv main.dist EIMUtils && mv EIMUtils/main.exe EIMUtils/EIMUtils.exe && Compress-Archive -Path EIMUtils -DestinationPath EIMUtils.zip
run: |
cd build
mv main.dist EIMUtils
mv EIMUtils/main.exe EIMUtils/EIMUtils.exe
Compress-Archive -Path EIMUtils -DestinationPath EIMUtils.zip
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand All @@ -40,7 +44,7 @@ jobs:
asset_name: EIMUtils-Windows.zip
tag: ${{ github.event.release.tag_name }}

build-macos:
build-macos-intel:
runs-on: macos-latest
steps:
- name: Check out git repository
Expand Down Expand Up @@ -71,7 +75,59 @@ jobs:
macos-app-icon: logo512.png

- name: Package
run: cd build && mv main.dist EIMUtils && mv EIMUtils/main EIMUtils/EIMUtils && zip -r EIMUtils.zip EIMUtils
run: |
cd build
mv main.dist EIMUtils
mv EIMUtils/main.bin EIMUtils/EIMUtils
zip -r EIMUtils.zip EIMUtils
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/EIMUtils.zip
asset_name: EIMUtils-macos-x86_64.zip
tag: ${{ github.event.release.tag_name }}

build-macos-arm:
runs-on: macos-latest
steps:
- name: Check out git repository
uses: actions/checkout@v3
with:
submodules: true

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: 'arm64'

- name: Install requirements
run: pip3 install imageio

- name: Generate files
run: python build.py

- name: Nuitka
uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
script-name: build/main.py
macos-target-arch: arm64
onefile: false
company-name: EchoInMirror
product-name: EIMUtils
file-version: ${{ github.event.release.tag_name }}
macos-app-icon: logo512.png
macos-arch: arm64

- name: Package
run: |
cd build
mv main.dist EIMUtils
mv EIMUtils/main.bin EIMUtils/EIMUtils
zip -r EIMUtils.zip EIMUtils
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit a85c4d9

Please sign in to comment.