mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-31 07:16:20 +00:00
Update build.yml
This commit is contained in:
parent
8ed0680507
commit
3ab3db670a
1 changed files with 20 additions and 11 deletions
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
|
@ -18,23 +18,31 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build
|
- name: Build v2rayN
|
||||||
run: |
|
run: |
|
||||||
cd v2rayN && dotnet build build.csproj --configuration Release
|
cd v2rayN
|
||||||
|
dotnet publish v2rayN.csproj -c Release -r win-x64 --self-contained false -p:PublishReadyToRun=false -p:PublishSingleFile=true -o ./bin/win-x64
|
||||||
|
|
||||||
# Uncomment if packaging is needed
|
- name: Build v2rayN.Desktop
|
||||||
# - name: Package
|
run: |
|
||||||
# run: |
|
cd v2rayN.Desktop
|
||||||
# 7z a -mx9 ..\v2rayN.7z $env:Wap_Project_Directory
|
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: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: v2rayN
|
name: v2rayN
|
||||||
path: |
|
path: |
|
||||||
.\v2rayN\v2rayN.zip
|
./bin/win-x64/v2rayN.zip
|
||||||
|
./bin/linux-x64/v2rayN.zip
|
||||||
|
|
||||||
# Uncomment if release is needed
|
# Uncomment to create a release on GitHub after building
|
||||||
# - name: Release
|
# - name: Release
|
||||||
# uses: softprops/action-gh-release@v1
|
# uses: softprops/action-gh-release@v1
|
||||||
# env:
|
# env:
|
||||||
|
@ -43,7 +51,8 @@ jobs:
|
||||||
# prerelease: ${{ contains(github.ref, '-') }}
|
# prerelease: ${{ contains(github.ref, '-') }}
|
||||||
# draft: false
|
# draft: false
|
||||||
# files: |
|
# files: |
|
||||||
# .\v2rayN\v2rayN.zip
|
# ./bin/win-x64/v2rayN.zip
|
||||||
|
# ./bin/linux-x64/v2rayN.zip
|
||||||
# body: |
|
# body: |
|
||||||
# [](https://t.me/netch_channel) [](https://t.me/netch_group)
|
# [](https://t.me/netch_channel) [](https://t.me/netch_group)
|
||||||
# ## Changelogs
|
# ## Changelogs
|
||||||
|
|
Loading…
Reference in a new issue