From 4c9dc4bbeb7c32ab1126fe78cca1e0706e312d08 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 19 May 2022 12:27:46 +0200 Subject: [PATCH] chore: add gnoweb build in Makefile + CI (#204) --- .github/workflows/build.yml | 7 ++++++- Makefile | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c75491cb0df..0a7c09f88b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: goversion: ["1.17.x"] goarch: ["amd64"] goos: ["linux"] - program: ["genproto", "gnofaucet", "gnokey", "gnoland", "gnotxport", "goscan", "gnodev"] + program: ["genproto", "gnofaucet", "gnokey", "gnoland", "gnotxport", "goscan", "gnodev", "gnoweb"] # fixme: add "gnoview" runs-on: ubuntu-latest timeout-minutes: 5 @@ -31,4 +31,9 @@ jobs: go-version: ${{ matrix.go-version }} - uses: actions/checkout@v3 - name: install + if: matrix.program != 'gnoweb' run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go install ./cmd/${{ matrix.program }} + - name: install + # FIXME: consider moving gnoland/website -> ./cmd/gnoweb + if: matrix.program == 'gnoweb' + run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go install ./gnoland/website diff --git a/Makefile b/Makefile index 3f7408c0e96..b8777ed0d16 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ ######################################## # Dist suite -.PHONY: logos goscan gnoland gnokey gnofaucet logos reset -all: gnoland gnokey goscan logos +.PHONY: logos goscan gnoland gnokey gnofaucet logos reset gnoweb +all: gnoland gnokey goscan logos gnoweb reset: rm -rf testdir @@ -38,6 +38,11 @@ goscan: @echo "Building goscan" go build -o build/goscan ./cmd/goscan +gnoweb: + @echo "Building website" + go build -o build/website + + # Logos is the interface to Gnoland logos: