Files
zhongyang219 48217b4863 撤销更改
2026-07-11 16:43:11 +08:00

110 lines
3.0 KiB
YAML

name: Release CI
on:
push:
tags: ['v*']
workflow_dispatch:
jobs:
x64_build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Run msbuild
run: msbuild TrafficMonitor_Lite.sln -p:configuration="Release (lite)" -p:platform=x64 -p:platformToolset=v143
- name: Get current time
uses: josStorer/get-current-time@v2.0.2
id: current-time
with:
format: YYYYMMDD_HHmmss
utcOffset: "+08:00"
- name : Upload artifact
uses: actions/upload-artifact@v4
with:
name: x64_${{ steps.current-time.outputs.formattedTime }}_TrafficMonitor
path: |
Bin/x64/Release (lite)/TrafficMonitor.exe
Bin/x64/Release (lite)/*.dll
- name : Upload pdb files
uses: actions/upload-artifact@v4
with:
name: x64_${{ steps.current-time.outputs.formattedTime }}_pdb
path: Bin/x64/Release (lite)/*.pdb
x86_build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Run msbuild
run: msbuild TrafficMonitor_Lite.sln -p:configuration="Release (lite)" -p:platform=x86 -p:platformToolset=v143
- name: Get current time
uses: josStorer/get-current-time@v2.0.2
id: current-time
with:
format: YYYYMMDD_HHmmss
utcOffset: "+08:00"
- name : Upload artifact
uses: actions/upload-artifact@v4
with:
name: x86_${{ steps.current-time.outputs.formattedTime }}_TrafficMonitor
path: |
Bin/Release (lite)/TrafficMonitor.exe
Bin/Release (lite)/*.dll
- name : Upload pdb files
uses: actions/upload-artifact@v4
with:
name: x86_${{ steps.current-time.outputs.formattedTime }}_pdb
path: Bin/Release (lite)/*.pdb
arm64ec_build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Run msbuild
run: msbuild TrafficMonitor_Lite.sln -p:configuration="Release (lite)" -p:platform=ARM64EC -p:platformToolset=v143
- name: Get current time
uses: josStorer/get-current-time@v2.0.2
id: current-time
with:
format: YYYYMMDD_HHmmss
utcOffset: "+08:00"
# - name: Move dll file path
# run: mv Bin/x64/Release/*.dll Bin/ARM64EC/Release/
- name : Upload artifact
uses: actions/upload-artifact@v4
with:
name: arm64EC_${{ steps.current-time.outputs.formattedTime }}_TrafficMonitor
path: |
Bin/ARM64EC/Release (lite)/TrafficMonitor.exe
Bin/ARM64EC/Release (lite)/*.dll
- name : Upload pdb files
uses: actions/upload-artifact@v4
with:
name: arm64EC_${{ steps.current-time.outputs.formattedTime }}_pdb
path: Bin/ARM64EC/Release (lite)/*.pdb