Skip to content

Attempt to save artifacts #2

Attempt to save artifacts

Attempt to save artifacts #2

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

Check failure on line 33 in .github/workflows/dotnet-build-componentclassregistry.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dotnet-build-componentclassregistry.yml

Invalid workflow file

You have an error in your yaml syntax on line 33
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