[Snyk] Security upgrade Microsoft.Extensions.Configuration.Json from 8.0.0 to 8.0.1 #178
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: dotnet | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Current Time | |
uses: josStorer/[email protected] | |
id: current-time | |
with: | |
format: MMDDYY | |
- name: Use current time | |
env: | |
BUILD_VERSION: "${{ steps.current-time.outputs.formattedTime }}-${{ github.run_number }}" | |
run: | | |
echo $BUILD_VERSION | |
echo "BUILD_VERSION=${BUILD_VERSION}" >> $GITHUB_ENV | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Write Version File | |
uses: DamianReeves/write-file-action@master | |
with: | |
path: MBBSEmu/Assets/version.txt | |
contents: ${{ env.BUILD_VERSION }} | |
write-mode: overwrite | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal | |
- name: Publish Executables | |
run: | | |
mkdir output-win-x64 | |
dotnet publish MBBSEmu/MBBSEmu.csproj --output output-win-x64/ --configuration Release --runtime win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeNativeLibrariesInSingleFile=true -p:PublishTrimmed=false -p:CopyOutputSymbolsToPublishDirectory=false --verbosity n | |
mkdir output-win-x86 | |
dotnet publish MBBSEmu/MBBSEmu.csproj --output output-win-x86/ --configuration Release --runtime win-x86 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeNativeLibrariesInSingleFile=true -p:PublishTrimmed=false -p:CopyOutputSymbolsToPublishDirectory=false --verbosity n | |
mkdir output-win-arm64 | |
dotnet publish MBBSEmu/MBBSEmu.csproj --output output-win-arm64/ --configuration Release --runtime win-arm64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeNativeLibrariesInSingleFile=true -p:PublishTrimmed=false -p:CopyOutputSymbolsToPublishDirectory=false --verbosity n | |
mkdir output-linux-x64 | |
dotnet publish MBBSEmu/MBBSEmu.csproj --output output-linux-x64/ --configuration Release --runtime linux-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeNativeLibrariesInSingleFile=true -p:PublishTrimmed=false -p:CopyOutputSymbolsToPublishDirectory=false --verbosity n | |
mkdir output-linux-arm | |
dotnet publish MBBSEmu/MBBSEmu.csproj --output output-linux-arm/ --configuration Release --runtime linux-arm --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeNativeLibrariesInSingleFile=true -p:PublishTrimmed=false -p:CopyOutputSymbolsToPublishDirectory=false --verbosity n | |
mkdir output-osx-x64 | |
dotnet publish MBBSEmu/MBBSEmu.csproj --output output-osx-x64/ --configuration Release --runtime osx-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeNativeLibrariesInSingleFile=true -p:PublishTrimmed=false -p:CopyOutputSymbolsToPublishDirectory=false --verbosity n | |
mkdir output-osx-arm64 | |
dotnet publish MBBSEmu/MBBSEmu.csproj --output output-osx-arm64/ --configuration Release --runtime osx-arm64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:IncludeNativeLibrariesInSingleFile=true -p:PublishTrimmed=false -p:CopyOutputSymbolsToPublishDirectory=false --verbosity n | |
- name: Upload win-x64 Artifact | |
uses: actions/[email protected] | |
with: | |
name: mbbsemu-win-x64-${{ env.BUILD_VERSION }} | |
path: output-win-x64/* | |
- name: Create win-x86 Artifact | |
uses: actions/[email protected] | |
with: | |
name: mbbsemu-win-x86-${{ env.BUILD_VERSION }} | |
path: output-win-x86/* | |
- name: Create win-arm64 Artifact | |
uses: actions/[email protected] | |
with: | |
name: mbbsemu-win-arm64-${{ env.BUILD_VERSION }} | |
path: output-win-arm64/* | |
- name: Create linux-x64 Artifact | |
uses: actions/[email protected] | |
with: | |
name: mbbsemu-linux-x64-${{ env.BUILD_VERSION }} | |
path: output-linux-x64/* | |
- name: Create linux-arm Artifact | |
uses: actions/[email protected] | |
with: | |
name: mbbsemu-linux-arm-${{ env.BUILD_VERSION }} | |
path: output-linux-arm/* | |
- name: Create osx-x64 Artifact | |
uses: actions/[email protected] | |
with: | |
name: mbbsemu-osx-x64-${{ env.BUILD_VERSION }} | |
path: output-osx-x64/* | |
- name: Create osx-arm64 Artifact | |
uses: actions/[email protected] | |
with: | |
name: mbbsemu-osx-arm64-${{ env.BUILD_VERSION }} | |
path: output-osx-arm64/* |