From 26c419f5645aa7c22761df622fdd5c8c2d2b339f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20L=2E=20Hansen?= Date: Thu, 1 Sep 2022 17:29:07 -0700 Subject: [PATCH] Add quick linux/amd64 only test build --- .github/workflows/main.yaml | 4 ++-- .github/workflows/quick-build.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/quick-build.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 23f5ef7..d53a505 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -26,7 +26,7 @@ jobs: run: "diffsize=$(git diff bindata/static/js/gotty.js | wc -l); test $diffsize == 0" - build-test: + cross-compile-test: runs-on: "ubuntu-latest" steps: @@ -42,7 +42,7 @@ jobs: - name: "Build & test" run: "make tools test cross_compile" - - name: Upload build artifacts + - name: Upload artifacts uses: actions/upload-artifact@v3 with: name: binaries diff --git a/.github/workflows/quick-build.yaml b/.github/workflows/quick-build.yaml new file mode 100644 index 0000000..27b0250 --- /dev/null +++ b/.github/workflows/quick-build.yaml @@ -0,0 +1,30 @@ +name: "Quick build test" + +on: + push: + pull_request: + branches: [ master ] + + +jobs: + quick-build-test: + runs-on: "ubuntu-latest" + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: "Build" + run: "touch bindata/* bindata/*/* ; make" + + - name: Upload linux/amd64 artifact + uses: actions/upload-artifact@v3 + with: + name: gotty-linux-amd64 + path: gotty