Skip to content

Commit

Permalink
Refactoring
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
  • Loading branch information
milandjurdjevic committed Feb 6, 2025
1 parent 4e71a4d commit 05d30e7
Show file tree
Hide file tree
Showing 17 changed files with 970 additions and 950 deletions.
File renamed without changes.
26 changes: 13 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
with:
dotnet-version: 8.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 @@ -43,14 +43,14 @@ jobs:
- 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 @@ -68,13 +68,13 @@ jobs:
- 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 05d30e7

Please sign in to comment.