Skip to content

Commit

Permalink
Update deploy-binaries.yml for macOS build
Browse files Browse the repository at this point in the history
Signed-off-by: Loren Eteval <[email protected]>
  • Loading branch information
LorenEteval committed Feb 29, 2024
1 parent 4ff728a commit eabe2f7
Showing 1 changed file with 99 additions and 5 deletions.
104 changes: 99 additions & 5 deletions .github/workflows/deploy-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Deploy Binaries

on: [push, pull_request]

defaults:
run:
shell: bash

jobs:
deploy-windows:
name: Deploy Windows
runs-on: windows-2022
deploy:
name: Deploy
runs-on: [windows-2022, macos-11, macos-14]

steps:
- uses: actions/checkout@v4
Expand All @@ -18,7 +22,14 @@ jobs:
- name: Set up Python venv
run: |
python3 -m venv .venv
.venv/Scripts/activate
if [ "$RUNNER_OS" == "macOS" ]; then
source .venv/bin/activate
elif [ "$RUNNER_OS" == "Windows" ]; then
.venv/Scripts/activate
else
echo "$RUNNER_OS not supported"
exit 1
fi
python3 --version
- name: Install setuptools, wheel
Expand Down Expand Up @@ -75,6 +86,89 @@ jobs:
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: windows-distributions
name: binary-distributions
path: |
*.zip
*.dmg
deploy-legacy-pyside6:
name: Deploy Legacy PySide6
runs-on: [macos-11, macos-14]

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Set up Python venv
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 --version
- name: Install setuptools, wheel
run: >-
python3 -m
pip install
setuptools wheel
- name: Install PySide6 6.4.3
run: >-
python3 -m
pip install
pyside6==6.4.3
- name: Install requirements-nocore.txt
run: >-
python3 -m
pip install
-r requirements-nocore.txt
- name: Install nuitka, imageio
run: >-
python3 -m
pip install
nuitka imageio
- name: Set up go 1.20
uses: actions/setup-go@v4
with:
go-version: "1.20"

- name: Install go 1.20 dependencies
run: |
go version
python3 -m pip install "hysteria > 1.3.5"
- name: Set up go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.21"

- name: Install go 1.21 dependencies
run: |
go version
python3 -m pip install "tun2socks > 2.5.1"
- name: Set up go 1.22
uses: actions/setup-go@v4
with:
go-version: "1.22"

- name: Install go 1.22 dependencies
run: |
go version
python3 -m pip install "Xray-core >= 1.8.8" "hysteria2 >= 2.0.4"
- name: Run deploy script
run: python3 Deploy.py

- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: binary-distributions
path: |
*.dmg

0 comments on commit eabe2f7

Please sign in to comment.