Add quick linux/amd64 only test build

This commit is contained in:
Søren L. Hansen 2022-09-01 17:29:07 -07:00
parent 1b7cb8c9cb
commit 26c419f564
2 changed files with 32 additions and 2 deletions

View File

@ -26,7 +26,7 @@ jobs:
run: "diffsize=$(git diff bindata/static/js/gotty.js | wc -l); test $diffsize == 0" run: "diffsize=$(git diff bindata/static/js/gotty.js | wc -l); test $diffsize == 0"
build-test: cross-compile-test:
runs-on: "ubuntu-latest" runs-on: "ubuntu-latest"
steps: steps:
@ -42,7 +42,7 @@ jobs:
- name: "Build & test" - name: "Build & test"
run: "make tools test cross_compile" run: "make tools test cross_compile"
- name: Upload build artifacts - name: Upload artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: binaries name: binaries

30
.github/workflows/quick-build.yaml vendored Normal file
View File

@ -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