Browse Source

Also use Github Actions as a CI" (#847)

Thog 6 năm trước cách đây
mục cha
commit
17b2be7174
1 tập tin đã thay đổi với 27 bổ sung0 xóa
  1. 27 0
      .github/workflows/build.yml

+ 27 - 0
.github/workflows/build.yml

@@ -0,0 +1,27 @@
+name: "Build job"
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+    branches:
+      - '*'
+jobs:
+  build:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest, macOS-latest, windows-latest]
+        dotnet: ['3.1.100']
+        environment: ['Debug', 'Release', 'Profile Debug', 'Profile Release']
+    name: ${{ matrix.environment }} build (Dotnet ${{ matrix.dotnet }}, OS ${{ matrix.os }})
+    steps:
+      - uses: actions/checkout@master
+      - name: Setup dotnet
+        uses: actions/setup-dotnet@v1
+        with:
+          dotnet-version: ${{ matrix.dotnet }}
+      - name: Build
+        run: dotnet build -c "${{ matrix.environment }}"
+      - name: Test
+        run: dotnet test -c "${{ matrix.environment }}"