Attempt to save artifacts #2
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: .NET build ComponentClassRegistry | ||
on: | ||
push: | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Restore dependencies | ||
working-directory: dotnet/ComponentClassRegistry | ||
run: dotnet restore | ||
- name: Build | ||
working-directory: dotnet/ComponentClassRegistry | ||
run: dotnet build | ||
- name: Test | ||
working-directory: dotnet/ComponentClassRegistry | ||
run: dotnet test | ||
- name: Pack | ||
working-directory: dotnet/ComponentClassRegistry | ||
run: dotnet pack | ||
- name: Install Package Tools | ||
working-directory: dotnet/ComponentClassRegistry | ||
run: | | ||
dotnet tool install dotnet-deb | ||
dotnet tool install dotnet-rpm | ||
dotnet tool install dotnet-zip | ||
- name: SMBIOS Cli | ||
working-directory: dotnet/ComponentClassRegistry/SmbiosCli | ||
run: | | ||
dotnet deb -r linux-x64 -c Release | ||
dotnet rpm -r linux-x64 -c Release | ||
dotnet zip -r win-x64 -c Release | ||
- name: PCIe Cli | ||
working-directory: dotnet/ComponentClassRegistry/PcieCli | ||
run: | | ||
dotnet deb -r linux-x64 -c Release | ||
dotnet rpm -r linux-x64 -c Release | ||
dotnet zip -r win-x64 -c Release | ||
- name: Storage Cli | ||
working-directory: dotnet/ComponentClassRegistry/StorageCli | ||
run: | | ||
dotnet deb -r linux-x64 -c Release | ||
dotnet rpm -r linux-x64 -c Release | ||
dotnet zip -r win-x64 -c Release | ||
- name: Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: testArtifacts | ||
retention-days: 1 | ||
if-no-files-found: error | ||
path: | | ||
dotnet/ComponentClassRegistry/SmbiosCli/**/*.deb | ||
dotnet/ComponentClassRegistry/SmbiosCli/**/*.rpm | ||
dotnet/ComponentClassRegistry/SmbiosCli/**/*.zip | ||
dotnet/ComponentClassRegistry/PcieCli/**/*.deb | ||
dotnet/ComponentClassRegistry/PcieCli/**/*.rpm | ||
dotnet/ComponentClassRegistry/PcieCli/**/*.zip | ||
dotnet/ComponentClassRegistry/StorageCli/**/*.deb | ||
dotnet/ComponentClassRegistry/StorageCli/**/*.rpm | ||
dotnet/ComponentClassRegistry/StorageCli/**/*.zip | ||