Skip to content

Commit

Permalink
megaease#11 add the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gaufung committed Oct 8, 2023
1 parent b2b2b72 commit d6db7cd
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: build sdk

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
linux-build:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Install paket
run: dotnet tool install paket --tool-path .paket

- name: Build solution
run: bash ./scripts/ci.sh

windows-build:
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'

- name: Install paket
run: dotnet tool install paket --tool-path .paket

- name: Build solution
run: |
./scripts/ci.bat
7 changes: 7 additions & 0 deletions scripts/ci.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dotnet tool restore
dotnet paket install
dotnet restore Src
dotnet restore Tests
dotnet restore Examples/aspnetcore/common
dotnet restore Examples/aspnetcore/backend
dotnet restore Examples/aspnetcore/frontend
7 changes: 7 additions & 0 deletions scripts/ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dotnet tool restore
dotnet paket install
dotnet restore Src
dotnet restore Tests
dotnet restore Examples/aspnetcore/common
dotnet restore Examples/aspnetcore/backend
dotnet restore Examples/aspnetcore/frontend

0 comments on commit d6db7cd

Please sign in to comment.