mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-30 14:56:19 +00:00
Update build.yml
This commit is contained in:
parent
eec9a499e6
commit
44c86e7776
1 changed files with 45 additions and 3 deletions
48
.github/workflows/build.yml
vendored
48
.github/workflows/build.yml
vendored
|
@ -8,6 +8,10 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
configuration: [Release]
|
||||||
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -17,13 +21,51 @@ jobs:
|
||||||
- name: Build v2rayN
|
- name: Build v2rayN
|
||||||
run: |
|
run: |
|
||||||
cd v2rayN
|
cd v2rayN
|
||||||
dotnet publish v2rayN.csproj -c Release -o ./bin
|
dotnet publish v2rayN.csproj -c Release -r win-x64 --self-contained false -p:PublishReadyToRun=false -p:PublishSingleFile=true -o ./bin/win-x64
|
||||||
|
|
||||||
|
- name: Build v2rayN.Desktop
|
||||||
|
run: |
|
||||||
|
cd v2rayN.Desktop
|
||||||
|
dotnet publish v2rayN.Desktop.csproj -c Release -r linux-x64 --self-contained true -p:PublishReadyToRun=false -p:PublishSingleFile=true -o ./bin/linux-x64
|
||||||
|
|
||||||
|
# Optional cleanup of .pdb files if needed
|
||||||
|
- name: Clean up PDB files
|
||||||
|
run: |
|
||||||
|
rm -f ./bin/win-x64/*.pdb
|
||||||
|
rm -f ./bin/linux-x64/*.pdb
|
||||||
|
|
||||||
- name: List Output Files
|
- name: List Output Files
|
||||||
run: dir .\v2rayN\bin
|
run: |
|
||||||
|
echo "Windows Build Output:"
|
||||||
|
dir ./bin/win-x64
|
||||||
|
echo "Linux Build Output:"
|
||||||
|
dir ./bin/linux-x64
|
||||||
|
|
||||||
|
# Create a zip package of the builds (optional)
|
||||||
|
- name: Package Artifacts
|
||||||
|
run: |
|
||||||
|
7z a v2rayN.zip ./bin/win-x64/* ./bin/linux-x64/*
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: v2rayN
|
name: v2rayN
|
||||||
path: .\v2rayN\bin\*
|
path: v2rayN.zip
|
||||||
|
|
||||||
|
# Uncomment to create a release on GitHub after building
|
||||||
|
# - name: Release
|
||||||
|
# uses: softprops/action-gh-release@v1
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
# with:
|
||||||
|
# prerelease: ${{ contains(github.ref, '-') }}
|
||||||
|
# draft: false
|
||||||
|
# files: |
|
||||||
|
# v2rayN.zip
|
||||||
|
# body: |
|
||||||
|
# [](https://t.me/netch_channel) [](https://t.me/netch_group)
|
||||||
|
# ## Changelogs
|
||||||
|
# * This is an automated deployment of GitHub Actions, the change log should be updated manually soon
|
||||||
|
|
||||||
|
# ## 更新日志
|
||||||
|
# * 这是 GitHub Actions 自动化部署,更新日志应该很快会手动更新
|
||||||
|
|
Loading…
Reference in a new issue