mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 08:48:13 +00:00
First ARM macOS test
This commit is contained in:
74
.github/workflows/create-executables.yml
vendored
74
.github/workflows/create-executables.yml
vendored
@@ -10,26 +10,44 @@ on:
|
|||||||
- github-actions
|
- github-actions
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pyinstaller-build-windows:
|
# pyinstaller-build-windows:
|
||||||
runs-on: windows-latest
|
# runs-on: windows-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout code
|
# - name: Checkout code
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
- name: Extract Version
|
# - name: Extract Version
|
||||||
id: get_version
|
# id: get_version
|
||||||
run: |
|
# run: |
|
||||||
$version = python -c "from version import APP_VERSION; print(APP_VERSION)"
|
# $version = python -c "from version import APP_VERSION; print(APP_VERSION)"
|
||||||
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
|
# echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
|
||||||
- name: Create Executable (Windows-x64)
|
# - name: Create Executable (Windows-x64)
|
||||||
uses: sayyid5416/pyinstaller@v1
|
# uses: sayyid5416/pyinstaller@v1
|
||||||
with:
|
# with:
|
||||||
python_ver: '3.11'
|
# python_ver: '3.11'
|
||||||
python_arch: 'x64'
|
# python_arch: 'x64'
|
||||||
spec: 'main.spec'
|
# spec: 'main.spec'
|
||||||
requirements: 'requirements.txt'
|
# requirements: 'requirements.txt'
|
||||||
upload_exe_with_name: 'Zordon-${{env.VERSION}}-windows-x64'
|
# upload_exe_with_name: 'Zordon-${{env.VERSION}}-Windows-x64'
|
||||||
pyinstaller-build-linux:
|
# pyinstaller-build-linux:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
# steps:
|
||||||
|
# - name: Checkout code
|
||||||
|
# uses: actions/checkout@v4
|
||||||
|
# - name: Extract Version
|
||||||
|
# id: get_version
|
||||||
|
# run: |
|
||||||
|
# version=$(python -c 'from version import APP_VERSION; print(APP_VERSION)')
|
||||||
|
# echo "VERSION=$version" >> $GITHUB_ENV
|
||||||
|
# - name: Create Executable (Linux-x64)
|
||||||
|
# uses: sayyid5416/pyinstaller@v1
|
||||||
|
# with:
|
||||||
|
# python_ver: '3.11'
|
||||||
|
# python_arch: 'x64'
|
||||||
|
# spec: 'main.spec'
|
||||||
|
# requirements: 'requirements.txt'
|
||||||
|
# upload_exe_with_name: 'Zordon-${{env.VERSION}}-Linux-x64'
|
||||||
|
pyinstaller-build-macos:
|
||||||
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -38,21 +56,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
version=$(python -c 'from version import APP_VERSION; print(APP_VERSION)')
|
version=$(python -c 'from version import APP_VERSION; print(APP_VERSION)')
|
||||||
echo "VERSION=$version" >> $GITHUB_ENV
|
echo "VERSION=$version" >> $GITHUB_ENV
|
||||||
- name: Create Executable (Linux-x64)
|
- name: Create Executable (macOS-arm64)
|
||||||
uses: sayyid5416/pyinstaller@v1
|
uses: sayyid5416/pyinstaller@v1
|
||||||
with:
|
with:
|
||||||
python_ver: '3.11'
|
python_ver: '3.11'
|
||||||
python_arch: 'x64'
|
python_arch: 'arm64'
|
||||||
spec: 'main.spec'
|
spec: 'main.spec'
|
||||||
requirements: 'requirements.txt'
|
requirements: 'requirements.txt'
|
||||||
upload_exe_with_name: 'Zordon-${{env.VERSION}}-linux-x64'
|
upload_exe_with_name: 'Zordon-${{env.VERSION}}-macOS-arm64'
|
||||||
# pyinstaller-build-macos:
|
|
||||||
# runs-on: macos-latest
|
|
||||||
# steps:
|
|
||||||
# - name: Create Executables (macOS)
|
|
||||||
# uses: sayyid5416/pyinstaller@v1
|
|
||||||
# with:
|
|
||||||
# python_ver: '3.11'
|
|
||||||
# spec: 'main.spec'
|
|
||||||
# requirements: 'requirements.txt'
|
|
||||||
# upload_exe_with_name: 'Zordon'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user