Удален сабмодуль #48
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 .NET Core | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
- GA-* | |
env: | |
MAIN_PROJECT: OneScript/OneScriptWeb.csproj | |
TEST_PROJECT: OneScriptWeb.Tests/OneScriptWeb.Tests.csproj | |
SOLUTION: OneScript.sln | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
dotnet-version: [3.1.301] | |
include: | |
- os: windows-latest | |
RID: win-x64 | |
target: netcoreapp3.1 | |
- os: ubuntu-latest | |
RID: linux-x64 | |
target: netcoreapp3.1 | |
defaults: | |
run: | |
working-directory: src | |
steps: | |
# актуализация с сабмодулями | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
# установка дотнет | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
# Сборка | |
- name: Build | |
run: dotnet build ${{env.MAIN_PROJECT}} -c Release -r ${{matrix.RID}} -f ${{ matrix.target }} -o ../artifact/${{matrix.target}}/${{matrix.RID}} | |
# Тесты | |
- name: Test | |
run: dotnet test ${{env.TEST_PROJECT}} -c Release --runtime=${{matrix.RID}} -f ${{ matrix.target }} --logger="trx;LogFileName=${{matrix.RID}}.trx" --results-directory=testResults | |
# Заливка в артефакты | |
- name: Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: oscript.web-${{matrix.RID}}.zip | |
path: ./artifact/${{matrix.target}}/${{matrix.RID}} |