-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (57 loc) · 1.69 KB
/
main.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
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
name: Cluster CI
on:
pull_request:
workflow_dispatch:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
nix_check:
name: Test - ${{ matrix.check }}
runs-on: ["self-hosted", "aws_autoscaling"]
strategy:
fail-fast: false
matrix:
check: ["ibft", "heavy", "nil", "nildocs", "niljs", "nilexplorer", "uniswap", "clijs"]
steps:
- name: checkout local actions
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: run check
run: nix build .#checks.x86_64-linux.${{ matrix.check == 'nil' && 'others' || matrix.check }} -L
ensure_cluster_builds_macos:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
arch: aarch64
- os: macos-13
arch: x64
environment: prod
name: MacOS CI
steps:
- name: checkout local actions
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Golang and solc
run: |
brew update
brew tap ethereum/ethereum
brew install go solidity protobuf coreutils
go install golang.org/x/tools/cmd/stringer@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: build binaries
run: |
export PATH=$PATH:$(go env GOPATH)/bin
make
- name: Upload nil binary as artifact
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: nil-darwin-${{ matrix.arch }}
path: |
build/bin/nil