aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-11-20 16:31:12 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-11-20 16:31:12 -0600
commitd6e62731414ea75fca96265f22997a2d31183b0a (patch)
tree58b5a73d1a8ec3e6dac56029ecb08fe8efa63d98 /.github/workflows
parent56339e50cc78e963b9634143af0986919cad4d43 (diff)
downloadslskd-d6e62731414ea75fca96265f22997a2d31183b0a.tar.gz
set up .net
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7603ad86..2c85d678 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,6 +7,9 @@ on:
branches: [ master ]
workflow_dispatch:
+env:
+ DOTNET_VERSION: '6.0.0'
+
jobs:
build:
name: Build and Test
@@ -17,6 +20,11 @@ jobs:
with:
fetch-depth: 0
+ - name: Set Up .NET
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: ${{ env.DOTNET_VERSION }}
+
- name: Set Environment Variables
run: |
echo "VERSION=$(git describe --tags --abbrev=0).$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
@@ -48,6 +56,11 @@ jobs:
with:
fetch-depth: 0
+ - name: Set Up .NET
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: ${{ env.DOTNET_VERSION }}
+
- name: Set Environment Variables
run: |
echo "VERSION=$(git describe --tags --abbrev=0).$([[ $GITHUB_REF = refs/tags/* ]] && echo 0 || echo 65534)-$(git rev-parse --short HEAD)" >> $GITHUB_ENV