From f3695c04aa7dbc3131d6c6da80b5894ac38cd30b Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Mon, 9 Oct 2023 22:47:39 +0200 Subject: [PATCH] Update .forgejo/workflows/build.yaml --- .forgejo/workflows/build.yaml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 959e92e..c63478c 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -6,18 +6,28 @@ jobs: build: runs-on: docker steps: - - run: | + - name: Install dependencies + run: | apt-get update apt-get install -y git - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + + - name: Checkout sourcecode + uses: actions/checkout@v3 + + - name: Setup go build environment + uses: actions/setup-go@v4 with: go-version-file: ./go.mod - - run: | + + - name: Generate space-api types and build binary + run: | apt-get install -y wget bash ./generate-spaceapi-types.sh go build -o okospaceapi ./cmd/server.go - - uses: actions/upload-artifact@v3 - with: - name: okospaceapi - path: okospaceapi + + # TODO: Disabled for now because we do not use it + #- name: Upload binary as an artefact + # uses: actions/upload-artifact@v3 + # with: + # name: okospaceapi + # path: okospaceapi