Skip to content

Merge pull request #411 from drewnoakes/file-type-detection-from-exte… #90

Merge pull request #411 from drewnoakes/file-type-detection-from-exte…

Merge pull request #411 from drewnoakes/file-type-detection-from-exte… #90

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
ununtu:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore
run: dotnet restore MetadataExtractor.sln
- name: Build (Release)
run: dotnet build MetadataExtractor.sln --configuration Release
- name: Build (Debug)
run: dotnet build MetadataExtractor.sln --configuration Debug
- name: Test net8.0 (Release)
run: dotnet test --verbosity normal --configuration Release --no-build -f net8.0 MetadataExtractor.Tests/MetadataExtractor.Tests.csproj
- name: Test net8.0 (Debug)
run: dotnet test --verbosity normal --configuration Debug --no-build -f net8.0 MetadataExtractor.Tests/MetadataExtractor.Tests.csproj
- name: Publish NativeAOT
run: dotnet publish --verbosity normal --configuration Release -f net8.0 MetadataExtractor.Tools.FileProcessor/MetadataExtractor.Tools.FileProcessor.csproj
windows:
runs-on: windows-latest
env:
DOTNET_NOLOGO: true
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore
run: dotnet restore MetadataExtractor.sln
- name: Build
run: dotnet build MetadataExtractor.sln --configuration Release
- name: Test net8.0
run: dotnet test --verbosity normal --configuration Release --no-build -f net8.0 MetadataExtractor.Tests\MetadataExtractor.Tests.csproj
- name: Test net462
run: dotnet test --verbosity normal --configuration Release --no-build -f net462 MetadataExtractor.Tests\MetadataExtractor.Tests.csproj
- name: Publish NativeAOT
run: dotnet publish --verbosity normal --configuration Release -f net8.0 -r win-x64 MetadataExtractor.Tools.FileProcessor/MetadataExtractor.Tools.FileProcessor.csproj