-
Notifications
You must be signed in to change notification settings - Fork 23
69 lines (62 loc) · 1.63 KB
/
build.yaml
File metadata and controls
69 lines (62 loc) · 1.63 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
id-token: write
strategy:
matrix:
env:
- name: mcp-auth-proxy-linux-amd64
os: linux
arch: amd64
- name: mcp-auth-proxy-linux-arm64
os: linux
arch: arm64
- name: mcp-auth-proxy-darwin-amd64
os: darwin
arch: amd64
- name: mcp-auth-proxy-darwin-arm64
os: darwin
arch: arm64
- name: mcp-auth-proxy-windows-amd64.exe
os: windows
arch: amd64
- name: mcp-auth-proxy-windows-arm64.exe
os: windows
arch: arm64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.25"
- name: Build
env:
GOOS: ${{ matrix.env.os }}
GOARCH: ${{ matrix.env.arch }}
CGO_ENABLED: 0
run: go build -o bin/${{ matrix.env.name }} .
- name: Publish artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.env.name }}
path: bin/${{ matrix.env.name }}
- name: Publish artifacts to release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: github.event_name == 'release'
run: gh release upload ${{ github.event.release.tag_name }} bin/${{ matrix.env.name }}