-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·39 lines (36 loc) · 1020 Bytes
/
Copy pathpr-build.yaml
File metadata and controls
executable file
·39 lines (36 loc) · 1020 Bytes
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
name: pr-build
on:
pull_request:
types:
- opened
- synchronize
- reopened
permissions:
packages: write
contents: read
statuses: read
actions: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
outputs:
profiles: ${{ steps.profiles.outputs.matrix }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: 1.22.x
- name: build
run: |
go install
cp -Rpv $(go list -m -f '{{.Dir}}' tailscale.com) tailscale
sudo chmod 0755 tailscale/ && sudo chown -R $USER. tailscale/
cd tailscale
CGO_ENABLED=0 go build -o derper ./cmd/derper/