Skip to content

Commit

Permalink
.NET 9 Upgrade
Browse files Browse the repository at this point in the history
- Pull sln & other config files to the repo root.
- Move tests to ~/test/...
- Move source to ~/src/...
- Update paths in the GitHub workflow file
- Update projects to .NET 9
- Drop FsUnit in favour of Unquote
  • Loading branch information
milandjurdjevic committed Feb 7, 2025
1 parent 4e71a4d commit 772f364
Show file tree
Hide file tree
Showing 20 changed files with 1,024 additions and 971 deletions.
File renamed without changes.
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
- name: Setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Restore
run: dotnet restore src
run: dotnet restore
- name: Build
run: dotnet build src --no-restore --configuration Release
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test src --no-build --configuration Release --verbosity normal
run: dotnet test --no-build --configuration Release --verbosity normal
- name: Publish
run: dotnet publish src/Analog --configuration Release -p:PublishSingleFile=true --self-contained
run: dotnet publish src --configuration Release -p:PublishSingleFile=true --self-contained
- name: Zip
run: zip /home/runner/work/analog/analog-linux-x64 /home/runner/work/analog/analog/src/Analog/bin/Release/net8.0/linux-x64/publish/*
run: zip /home/runner/work/analog/analog-linux-x64 /home/runner/work/analog/analog/src/bin/Release/net8.0/linux-x64/publish/*
- name: Upload
uses: actions/upload-artifact@v4
with:
Expand All @@ -39,18 +39,18 @@ jobs:
- name: Setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Restore
run: dotnet restore src
- name: Build
run: dotnet build src --no-restore --configuration Release
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test src --no-build --configuration Release --verbosity normal
run: dotnet test --no-build --configuration Release --verbosity normal
- name: Publish
run: dotnet publish src/Analog --configuration Release -p:PublishSingleFile=true --self-contained
run: dotnet publish src --configuration Release -p:PublishSingleFile=true --self-contained
- name: Zip
shell: pwsh
run: Compress-Archive -Path D:\a\analog\analog\src\Analog\bin\Release\net8.0\win-x64\publish\* -DestinationPath D:\a\analog\analog-win-x64.zip
run: Compress-Archive -Path D:\a\analog\analog\src\bin\Release\net8.0\win-x64\publish\* -DestinationPath D:\a\analog\analog-win-x64.zip
- name: Upload
uses: actions/upload-artifact@v4
with:
Expand All @@ -64,17 +64,17 @@ jobs:
- name: Setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Restore
run: dotnet restore src
- name: Build
run: dotnet build src --no-restore --configuration Release
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test src --no-build --configuration Release --verbosity normal
run: dotnet test --no-build --configuration Release --verbosity normal
- name: Publish
run: dotnet publish src/Analog --configuration Release -p:PublishSingleFile=true --self-contained
run: dotnet publish src --configuration Release -p:PublishSingleFile=true --self-contained
- name: Zip
run: zip /Users/runner/work/analog/analog-osx-arm64 /Users/runner/work/analog/analog/src/Analog/bin/Release/net8.0/osx-arm64/publish/*
run: zip /Users/runner/work/analog/analog-osx-arm64 /Users/runner/work/analog/analog/src/bin/Release/net8.0/osx-arm64/publish/*
- name: Upload
uses: actions/upload-artifact@v4
with:
Expand Down
Loading

0 comments on commit 772f364

Please sign in to comment.