From 81595fe32053d7f219f159e5bc0dba89586de4af Mon Sep 17 00:00:00 2001 From: "Paul \"TBBle\" Hampson" Date: Tue, 28 Jul 2020 00:01:34 +1000 Subject: [PATCH] Add initial GitHub Actions-based Windows CI Only a few tests are able to be run, because the integration test support code fails to compile on Windows, taking effect before the SKIP_INTEGRATION_TESTS env-var is handled. Signed-off-by: Paul "TBBle" Hampson --- .github/workflows/windows.yaml | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/windows.yaml diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml new file mode 100644 index 00000000..ff9f35f5 --- /dev/null +++ b/.github/workflows/windows.yaml @@ -0,0 +1,43 @@ +# This workflow is for builds on Windows. We cannot use the existing +# Travis-CI workflow as that depends on already having functioning +# BuildKit to run the v1.1-experimental Dockerfile that builds BuildKit. +name: Windows + +on: [push, pull_request] + +jobs: + build: + name: Build BuildKit + runs-on: windows-2019 + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.13 + - name: Checkout + uses: actions/checkout@v2 + # Is this needed? Didn't Go Modules fix this? + with: + path: src/github.com/moby/buildkit + - name: Compile + run: go install -mod=vendor ./cmd/... + working-directory: src/github.com/moby/buildkit + + unit_tests: + name: Unit Tests + runs-on: windows-2019 + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.13 + - name: Checkout + uses: actions/checkout@v2 + # Is this needed? Didn't Go Modules fix this? + with: + path: src/github.com/moby/buildkit + - name: Unit test + env: + SKIP_INTEGRATION_TESTS: 1 + run: go test -mod=vendor -v ./frontend/dockerfile/.../... ./session/... + working-directory: src/github.com/moby/buildkit