Merge pull request #29 from AinoraZ/AZ/refactor/syntax-and-packages #78
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: Build-CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: '0 18 1 * *' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
dotnet-version: ["8.0.206"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Setup dotnet ${{ matrix.dotnet-version }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Install deps | |
run: dotnet restore | |
- name: Build solution | |
run: dotnet build -c Release --no-restore | |
- name: Test solution | |
run: dotnet test -c Release --no-build | |
- name: Create package | |
run: dotnet pack -c Release --no-build | |
- name: Archive build artifacts for OS-${{ matrix.os }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifacts-${{ matrix.os }} | |
path: ./src/Ainoraz.EFCore.IncludeBuilder/bin/Release/ | |
- name: Benchmark | |
run: dotnet run --project ./tests/Ainoraz.EFCore.IncludeBuilder.Benchmarks -c Release --no-build | |
- name: Archive benchmarks for OS-${{ matrix.os }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: benchmarks-${{ matrix.os }} | |
path: ./BenchmarkDotNet.Artifacts/ |