From ec1aafb0ad67ffdf2a9a214a5ad925e0bb688c8d Mon Sep 17 00:00:00 2001 From: Jimmy Byrd Date: Thu, 9 Jan 2020 14:08:09 -0500 Subject: [PATCH] Add main github actions back --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..a8bbeb3f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build master + +on: [push] + +jobs: + build: + + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + dotnet: [3.1.100] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v1 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: ${{ matrix.dotnet }} + - name: Build + if: runner.os != 'Windows' + run: | + chmod +x ./build.sh + ./build.sh + env: + # Work around https://github.com/actions/setup-dotnet/issues/29 + DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64 + CI: true + - name: Build + if: runner.os == 'Windows' + run: ./build.cmd + env: + # Work around https://github.com/actions/setup-dotnet/issues/29 + DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64 + CI: true