From a07a71c0d4ae86d07f58cfbc1e97b48e228f11dc Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 12 Jun 2023 21:35:21 -0400 Subject: .NET 7 and NativeAOT Builds Removed .NET 6 builds. Added .NET 7 and NativeAOT builds. --- .github/workflows/dev.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to '.github/workflows/dev.yml') diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 61245b0..6ad0b21 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -39,9 +39,9 @@ jobs: - name: Publish - Trimmed/Single File run: | VERSION=${{ github.ref_name }} - dotnet publish -r linux-x64 -f net7.0 -p:AssemblyName=inveigh -c debug - dotnet publish -r osx-x64 -f net7.0 -p:AssemblyName=inveigh -c debug - dotnet publish -r win-x64 -f net7.0 -c debug + dotnet publish --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -r linux-x64 -f net7.0 -p:AssemblyName=inveigh -c debug + dotnet publish --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -r osx-x64 -f net7.0 -p:AssemblyName=inveigh -c debug + dotnet publish --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -r win-x64 -f net7.0 -c debug - name: Zip - Publish run: | @@ -49,6 +49,15 @@ jobs: tar -czvf Inveigh-net7.0-osx-x64-trimmed-single-dev.tar.gz --directory=$PWD/Inveigh/bin/debug/net7.0/osx-x64/publish/ . 7z a -tzip -mx9 Inveigh-net7.0-win-x64-trimmed-single-dev.zip $PWD/Inveigh/bin/debug/net7.0/win-x64/publish/* + - name: Publish - NativeAOT + run: | + VERSION=${{ github.ref_name }} + dotnet publish -p:Version=${VERSION:1} -r win-x64 -f net7.0 -p:PublishAot=true -c debug + + - name: Zip - Publish - NativeAOT + run: | + 7z a -tzip -mx9 Inveigh-net7.0-win-x64-nativeaot-${{ github.ref_name }}.zip $PWD/Inveigh/bin/debug/net7.0/win-x64/native/* + - name: Release .zip if: "! startsWith(github.event_name, 'pull_request')" uses: softprops/action-gh-release@v1 -- cgit v1.2.3