Skip to content

feat: 增加IPv6认证检测 #21

feat: 增加IPv6认证检测

feat: 增加IPv6认证检测 #21

Workflow file for this run

# Copyright (c) SduNetCheckTool
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
name: Build and Pack
on:
push:
branches:
- master
workflow_call:
jobs:
build:
strategy:
matrix:
targetplatform: [x64]
Configuration: [Release]
runs-on: windows-latest
env:
# artifacts 命名 [名字]-[build-number]-[commit-hash]
artifactName: SduNetCheckTool-build.${{github.run_number}}-${{ github.sha }}
appPackagesExecutable: SduNetCheckTool-build.${{github.run_number}}-${{ github.sha }}.zip
solutionPath: SduNetCheckTool.sln
guiProjectDirectory: SduNetCheckTool.GUI
Platform: x64
Configuration: Release
RuntimeIdentifier: win-x64
# appPackagesDirectory: bin\x64\Release
appPackagesDirectory: bin\$env:Platform\$env:Configuration
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1.x'
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Add Costura.Fody
run: dotnet add .\SduNetCheckTool.GUI\SduNetCheckTool.GUI.csproj package Costura.Fody
- name: Restore and build the Wpf application
run: ./.github/utils/build.ps1 -SolutionPath ${{ env.solutionPath }} -Configuration ${{ env.Configuration }} -Platform ${{ env.Platform }} -RuntimeIdentifier ${{ env.RuntimeIdentifier }}
# - name: Rename file
# run: |
# mkdir build
# Compress-Archive -Path ${{ env.guiProjectDirectory }}\${{ env.appPackagesDirectory }}\ -DestinationPath build\${{ env.appPackagesExecutable }}
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifactName }}
path: |
SduNetCheckTool.GUI\bin\x64\Release\SduNetCheckTool.GUI.exe
retention-days: 15