-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
941 additions
and
485 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
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}} |
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
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
Submodule OneScript
updated
82 files
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
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
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
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
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
Oops, something went wrong.