-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (41 loc) · 1.15 KB
/
build-fork.yaml
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
name: Build
concurrency:
group: "${{ github.repository }}${{ github.ref }}forkbuild"
cancel-in-progress: true
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
- develop
jobs:
build:
name: Build
if: github.event.pull_request.user.login == 'dependabot[bot]' || github.repository != 'otterize/otterize-cli' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'otterize/otterize-cli')
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out the code
uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: recursive
- uses: actions/setup-go@v3
with:
go-version: 1.22
- name: Install dependencies
if: matrix.os == 'macos-latest'
run: |-
brew install coreutils
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: |-
sudo apt install -y coreutils
- run: go build -o fork ./src/cmd
env:
CGO_ENABLED: "1"