aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorThog <me@thog.eu>2019-12-22 20:36:24 +0100
committerjduncanator <1518948+jduncanator@users.noreply.github.com>2019-12-23 06:36:24 +1100
commit17b2be7174b857a48c24592e2e6c067324821ade (patch)
treecdbfe1a531f25970edf48a6b0c1f8a8fedc4d5c6 /.github/workflows
parentbce8972e7a42687c2add1bd939d2c8b2441dc5f1 (diff)
Also use Github Actions as a CI" (#847)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..cca6c608
--- /dev/null
+++ b/.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 }}" \ No newline at end of file