Bump actions/upload-artifact from 3 to 4 #58
Workflow file for this run
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
name: Continuous Integration | |
on: | |
push: | |
branches: [main,] | |
pull_request: | |
branches: [main] | |
jobs: | |
buildWindows: | |
name: Windows Build | |
runs-on: windows-2022 | |
environment: sign | |
env: | |
Solution: AVMHomeAutomation.sln | |
NugetSpc: AVMHomeAutomation.nuspec | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1.3 | |
- name: Setup NuGet | |
uses: nuget/setup-nuget@v1 | |
- name: Add SignKeys | |
uses: Bassman2/SignKey@v1 | |
with: | |
file: Bassman.snk | |
key: ${{ secrets.SIGNKEY }} | |
- name: Install SHFB | |
uses: Bassman2/setup-SHFB@v1 | |
- name: Cache packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: ${{ runner.os }}-nuget- | |
- name: Nuget restore dependencies | |
run: nuget restore $env:Solution | |
- name: Dotnet restore dependencies | |
run: dotnet restore $env:Solution | |
- name: MSBuild of solution | |
run: msbuild $env:Solution /p:configuration="Debug" /verbosity:minimal | |
- name: MSBuild of solution | |
run: msbuild $env:Solution /p:configuration="Release" /verbosity:minimal | |
- name: Nuget pack nuspec | |
working-directory: .\Nuget\ | |
run: nuget pack $env:NugetSpc -properties Configuration=Release | |
- name: Upload documentation artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Documentation.zip | |
path: Doc/AVMHomeAutomationDoc/Help/AVMHomeAutomation.chm | |
- name: Upload nuget pack artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NugetPackage.zip | |
path: Nuget/AVMHomeAutomation.*.nupkg | |
buildLinux: | |
name: Linux Build | |
runs-on: ubuntu-22.04 | |
environment: sign | |
env: | |
Solution: AVMHomeAutomation.sln | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
- name: Add SignKeys | |
uses: Bassman2/SignKey@v1 | |
with: | |
file: Bassman.snk | |
key: ${{ secrets.SIGNKEY }} | |
- name: Cache packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: ${{ runner.os }}-nuget- | |
- name: Restore dependencies .NET 6.0 | |
run: dotnet restore ./Src/AVMHomeAutomation60/AVMHomeAutomation60.csproj | |
- name: Restore dependencies .NET 7.0 | |
run: dotnet restore ./Src/AVMHomeAutomation70/AVMHomeAutomation70.csproj | |
- name: Build .NET 6.0 | |
run: dotnet build Src/AVMHomeAutomation60/AVMHomeAutomation60.csproj --no-restore | |
- name: Build .NET 7.0 | |
run: dotnet build Src/AVMHomeAutomation70/AVMHomeAutomation70.csproj --no-restore | |
buildMac: | |
name: MacOS Build | |
runs-on: macos-12 | |
environment: sign | |
env: | |
Solution: AVMHomeAutomation.sln | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
- name: Add SignKeys | |
uses: Bassman2/SignKey@v1 | |
with: | |
file: Bassman.snk | |
key: ${{ secrets.SIGNKEY }} | |
- name: Cache packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: ${{ runner.os }}-nuget- | |
- name: Restore dependencies .NET 6.0 | |
run: dotnet restore ./Src/AVMHomeAutomation60/AVMHomeAutomation60.csproj | |
- name: Restore dependencies .NET 7.0 | |
run: dotnet restore ./Src/AVMHomeAutomation70/AVMHomeAutomation70.csproj | |
- name: Build .NET 6.0 | |
run: dotnet build Src/AVMHomeAutomation60/AVMHomeAutomation60.csproj --no-restore | |
- name: Build .NET 7.0 | |
run: dotnet build Src/AVMHomeAutomation70/AVMHomeAutomation70.csproj --no-restore |