okospaceapi/.forgejo/workflows/build.yaml-disabled

34 lines
814 B
Text
Raw Normal View History

2023-10-05 22:27:25 +02:00
on:
push:
branches:
- main
2023-10-01 14:18:10 +02:00
jobs:
build:
2023-10-06 21:04:10 +02:00
runs-on: docker
2023-10-01 14:18:10 +02:00
steps:
2023-10-09 22:47:39 +02:00
- name: Install dependencies
run: |
2023-10-06 21:22:15 +02:00
apt-get update
2023-10-06 21:23:43 +02:00
apt-get install -y git
2023-10-09 22:47:39 +02:00
- name: Checkout sourcecode
uses: actions/checkout@v3
- name: Setup go build environment
uses: actions/setup-go@v4
2023-10-05 22:27:25 +02:00
with:
2023-10-06 21:26:16 +02:00
go-version-file: ./go.mod
2023-10-09 22:47:39 +02:00
- name: Generate space-api types and build binary
run: |
2023-10-06 22:12:47 +02:00
apt-get install -y wget bash
./generate-spaceapi-types.sh
2023-10-06 22:18:12 +02:00
go build -o okospaceapi ./cmd/server.go
2023-10-09 22:47:39 +02:00
# 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