Skip to content

Update deploy-binaries.yml for macOS build #8

Update deploy-binaries.yml for macOS build

Update deploy-binaries.yml for macOS build #8

name: Deploy Binaries
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
deploy:
name: Deploy
runs-on: [windows-2022, 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
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
run: >-
python3 -m
pip install
setuptools wheel
- 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: |
*.zip
*.dmg