This commit is contained in:
parent
8c0e42423e
commit
f3695c04aa
1 changed files with 18 additions and 8 deletions
|
@ -6,18 +6,28 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y git
|
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:
|
with:
|
||||||
go-version-file: ./go.mod
|
go-version-file: ./go.mod
|
||||||
- run: |
|
|
||||||
|
- name: Generate space-api types and build binary
|
||||||
|
run: |
|
||||||
apt-get install -y wget bash
|
apt-get install -y wget bash
|
||||||
./generate-spaceapi-types.sh
|
./generate-spaceapi-types.sh
|
||||||
go build -o okospaceapi ./cmd/server.go
|
go build -o okospaceapi ./cmd/server.go
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
# TODO: Disabled for now because we do not use it
|
||||||
name: okospaceapi
|
#- name: Upload binary as an artefact
|
||||||
path: okospaceapi
|
# uses: actions/upload-artifact@v3
|
||||||
|
# with:
|
||||||
|
# name: okospaceapi
|
||||||
|
# path: okospaceapi
|
||||||
|
|
Loading…
Reference in a new issue