Add deploy-binaries.yml

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-02-29 10:17:08 +08:00
parent 1c5c54dfe2
commit 8a64bdeab7
+74
View File
@@ -0,0 +1,74 @@
name: Deploy Binaries
on: [push, pull_request]
jobs:
deploy-windows:
name: Deploy Windows
runs-on: windows-2022
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
.venv/Scripts/activate
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: Install go 1.20 dependencies
uses: actions/setup-go@v4
with:
go-version: "1.20"
- run: |
go version
python3 -m pip install "hysteria > 1.3.5"
- name: Install go 1.21 dependencies
uses: actions/setup-go@v4
with:
go-version: "1.21"
- run: |
go version
python3 -m pip install "tun2socks > 2.5.1"
- name: Install go 1.22 dependencies
uses: actions/setup-go@v4
with:
go-version: "1.22"
- 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: windows-distributions
path: |
*.zip