Skip to content

Commit

Permalink
Updated github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lowleveldesign committed Jan 25, 2024
1 parent 1cef982 commit f46e2fd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ jobs:
with:
fetch-depth: 1

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@main
with:
dotnet-version: '6.0.x' # SDK Version to use.

- run: dotnet publish -c release -r linux-x64 --self-contained
- run: dotnet publish -c release -r linux-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true
working-directory: ./dotnet-wtrace

- run: dotnet publish -c release -r osx-x64 --self-contained
- run: dotnet publish -c release -r osx-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true
working-directory: ./dotnet-wtrace

- run: dotnet publish -c release -r win-x64 --self-contained
- run: dotnet publish -c release -r win-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true
working-directory: ./dotnet-wtrace

- uses: actions/upload-artifact@main
with:
name: dotnet-wtrace-linux
path: dotnet-wtrace/bin/release/net6.0/linux-x64/publish/dotnet-wtrace.*
path: dotnet-wtrace/bin/release/net6.0/linux-x64/publish/dotnet-wtrace*

- uses: actions/upload-artifact@main
with:
Expand All @@ -41,4 +41,4 @@ jobs:
- uses: actions/upload-artifact@main
with:
name: dotnet-wtrace-osx
path: dotnet-wtrace/bin/release/net6.0/osx-x64/publish/dotnet-wtrace.*
path: dotnet-wtrace/bin/release/net6.0/osx-x64/publish/dotnet-wtrace*
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
fetch-depth: 1

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@main
with:
dotnet-version: '6.0.x' # SDK Version to use.

Expand All @@ -32,19 +32,19 @@ jobs:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
working-directory: ./dotnet-wtrace/bin/release

- run: dotnet publish -c release -r linux-x64 --self-contained
- run: dotnet publish -c release -r linux-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true
working-directory: ./dotnet-wtrace

- run: dotnet publish -c release -r osx-x64 --self-contained
- run: dotnet publish -c release -r osx-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true
working-directory: ./dotnet-wtrace

- run: dotnet publish -c release -r win-x64 --self-contained
- run: dotnet publish -c release -r win-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true
working-directory: ./dotnet-wtrace

- uses: actions/upload-artifact@main
with:
name: dotnet-wtrace-linux
path: dotnet-wtrace/bin/release/net6.0/linux-x64/publish/dotnet-wtrace.*
path: dotnet-wtrace/bin/release/net6.0/linux-x64/publish/dotnet-wtrace*

- uses: actions/upload-artifact@main
with:
Expand All @@ -54,4 +54,4 @@ jobs:
- uses: actions/upload-artifact@main
with:
name: dotnet-wtrace-osx
path: dotnet-wtrace/bin/release/net6.0/osx-x64/publish/dotnet-wtrace.*
path: dotnet-wtrace/bin/release/net6.0/osx-x64/publish/dotnet-wtrace*
2 changes: 0 additions & 2 deletions dotnet-wtrace/dotnet-wtrace.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<PackAsTool>true</PackAsTool>
<ToolCommandName>dotnet-wtrace</ToolCommandName>
<PublishTrimmed>true</PublishTrimmed>
<PublishSingleFile>true</PublishSingleFile>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit f46e2fd

Please sign in to comment.