mirror of
https://github.com/openziti/zrok.git
synced 2025-01-09 15:38:21 +01:00
43bcef43a9
upload the CI build artifact
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
name: CI Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
tags-ignore:
|
|
- '**'
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'website/**'
|
|
|
|
jobs:
|
|
ubuntu-build:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: setup-go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.19.3
|
|
|
|
- name: setup-node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16.x
|
|
|
|
- run: npm install
|
|
working-directory: ui
|
|
|
|
- run: npm run build
|
|
working-directory: ui
|
|
env:
|
|
CI: ""
|
|
|
|
- name: go install
|
|
run: go install -ldflags "-X github.com/openziti/zrok/build.Version=${{ github.ref }} -X github.com/openziti/zrok/build.Hash=${{ github.sha }}" ./...
|
|
|
|
- name: test
|
|
run: go test -v ./...
|
|
|
|
- name: solve GOBIN
|
|
id: solve_go_bin
|
|
run: |
|
|
echo DEBUG: go_path="$(go env GOPATH)"
|
|
echo go_bin="$(go env GOPATH)/bin" >> $GITHUB_OUTPUT
|
|
|
|
- name: upload build artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: linux-amd64
|
|
path: ${{ steps.solve_go_bin.outputs.go_bin }}/zrok
|
|
if-no-files-found: error |