-
Notifications
You must be signed in to change notification settings - Fork 241
40 lines (37 loc) · 999 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build
on:
schedule:
- cron: '21 */2 * * *'
push:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
test_build:
runs-on: ubuntu-latest-m
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
check-latest: true
- name: "Place wintun.dll"
run: cp deps/wintun/bin/amd64/wintun.dll ./
- name: build
uses: goreleaser/goreleaser-action@v5
env:
BUILD_ENV: "development"
with:
version: latest
args: build --clean --snapshot --verbose
- name: Upload flyctl for preflight
uses: actions/upload-artifact@v3
with:
name: flyctl
path: dist/default_linux_amd64_v1/flyctl
preflight:
needs: test_build
uses: ./.github/workflows/preflight.yml
secrets: inherit