发布2.7.5.0 #953
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 Core | |
on: | |
push: | |
branches: [ "develop", "release/*", "master" ] | |
pull_request: | |
branches: [ "develop", "release/*", "master" ] | |
jobs: | |
ubuntu-latest: | |
name: ubuntu-latest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
dotnet-version: '5.0.x' | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
- uses: actions/checkout@v2 | |
- name: 🔨 Use .NET 7.X SDK | |
uses: actions/[email protected] | |
with: | |
dotnet-version: '7.x' | |
- name: Install libgdiplus | |
run: sudo apt-get update && sudo apt-get install -y libgdiplus libc6-dev | |
# - name: t | |
# run: sudo ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll | |
# - name: t1 | |
# run: sudo apt-get update && sudo apt-get install -y fontconfig | |
- name: Install libjpeg62 | |
run: sudo apt-get install libjpeg62 | |
- name: Restore with dotnet | |
run: dotnet restore | |
- name: Build with dotnet | |
run: dotnet build -c Release --no-restore | |
- name: Test with .NET 6.0.x | |
run: dotnet test src/Magicodes.ExporterAndImporter.Tests -f net6.0 | |
- name: Test with .NET 7.0.x | |
run: dotnet test src/Magicodes.ExporterAndImporter.Tests -f net7.0 | |
windows-latest: | |
name: windows-latest | |
runs-on: windows-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
dotnet-version: '5.0.x' | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
- uses: actions/checkout@v2 | |
- name: 🔨 Use .NET 7.X SDK | |
uses: actions/[email protected] | |
with: | |
dotnet-version: '7.x' | |
- name: Restore with dotnet | |
run: dotnet restore | |
- name: Build with dotnet | |
run: dotnet build -c Release --no-restore | |
- name: Test with dotnet | |
run: dotnet test src/Magicodes.ExporterAndImporter.Tests | |
macOS-latest: | |
name: macOS-latest | |
runs-on: macos-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
dotnet-version: '5.0.x' | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
- uses: actions/checkout@v2 | |
- name: 🔨 Use .NET 7.X SDK | |
uses: actions/[email protected] | |
with: | |
dotnet-version: '7.x' | |
- name: Restore with dotnet | |
run: dotnet restore | |
- name: Build with dotnet | |
run: dotnet build -c Release --no-restore | |
- name: Test with .NET 6.0.x | |
run: dotnet test src/Magicodes.ExporterAndImporter.Tests -f net6.0 | |
- name: Test with .NET 7.0.x | |
run: dotnet test src/Magicodes.ExporterAndImporter.Tests -f net7.0 |