diff --git a/.github/workflows/deploy-binaries.yml b/.github/workflows/deploy-binaries.yml new file mode 100644 index 0000000..b968750 --- /dev/null +++ b/.github/workflows/deploy-binaries.yml @@ -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