2023-06-03 19:30:42 +00:00
|
|
|
name: Go Build
|
2023-06-03 16:56:31 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-06-03 19:30:42 +00:00
|
|
|
branches:
|
|
|
|
- main
|
2023-06-03 16:56:31 +00:00
|
|
|
pull_request:
|
2023-06-03 19:30:42 +00:00
|
|
|
branches:
|
|
|
|
- main
|
2023-06-03 16:56:31 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2023-06-03 19:30:42 +00:00
|
|
|
|
2023-06-03 16:56:31 +00:00
|
|
|
steps:
|
2023-06-03 19:30:42 +00:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.20
|
2023-06-03 16:56:31 +00:00
|
|
|
|
2023-06-03 19:30:42 +00:00
|
|
|
- name: Install external dependencies
|
|
|
|
run: go mod download
|
2023-06-03 16:56:31 +00:00
|
|
|
|
2023-06-03 19:30:42 +00:00
|
|
|
- name: Build
|
|
|
|
run: go build -o go-cdn
|