Skip to content

Commit

Permalink
Use dotnet cli instread of korebuild in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Sindo committed Feb 17, 2022
1 parent 6250775 commit 29dca47
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 22 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Gated-OSX
on:
push:
branches:
branches:
- master
- dev
pull_request:
branches:
branches:
- master
- dev
jobs:
build_osx:
runs-on: macOS-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2.2.0
Expand All @@ -30,7 +30,19 @@ jobs:
- name: Update SubModules
if: steps.filter.outputs.src == 'true'
run: git submodule update --init --recursive

- name: Build with dotnet
if: steps.filter.outputs.src == 'true'
run: "./build.sh --ci /p:DisableNet461Tests=true"

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.x
5.0.x
- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --no-restore /p:DisableNet461Tests=true
24 changes: 18 additions & 6 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Gated-Ubuntu
on:
on:
push:
branches:
branches:
- master
- dev
pull_request:
branches:
branches:
- master
- dev
jobs:
Expand All @@ -29,6 +29,18 @@ jobs:
- name: Update SubModules
run: git submodule update --init --recursive
if: steps.filter.outputs.src == 'true'
- name: Build with dotnet
run: "./build.sh --ci /p:DisableNet461Tests=true"
if: steps.filter.outputs.src == 'true'
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.x
5.0.x
- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --no-restore /p:DisableNet461Tests=true
31 changes: 22 additions & 9 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Gated-Windows
on:
on:
push:
branches:
branches:
- master
- dev
pull_request:
branches:
branches:
- master
- dev

jobs:
build_windows:
runs-on: [windows-latest]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2.2.0
Expand All @@ -29,8 +30,20 @@ jobs:
- name: Update SubModules
run: git submodule update --init --recursive
if: steps.filter.outputs.src == 'true'

- name: Build with dotnet
shell: powershell
run: .\run.ps1 default-build
if: steps.filter.outputs.src == 'true'

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.x
5.0.x
- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --no-restore

0 comments on commit 29dca47

Please sign in to comment.