@@ -2,8 +2,8 @@ version: 2.1
2
2
3
3
executors :
4
4
default :
5
- docker :
6
- - image : us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:v0.55.0
5
+ machine :
6
+ image : ubuntu-2204:2024.08.1
7
7
8
8
orbs :
9
9
@@ -24,31 +24,17 @@ commands:
24
24
name : Initialize submodules
25
25
command : git submodule update --init --recursive
26
26
27
- install-golangci-lint :
28
- parameters :
29
- version :
30
- type : string
31
- default : v1.63.4
27
+ install-dependencies :
32
28
steps :
33
29
- run :
34
- name : Setup golangci-lint
35
- command : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin << parameters.version >>
36
-
37
- install-goreleaser :
38
- parameters :
39
- version :
40
- type : string
41
- default : " 2.5.1"
42
- steps :
30
+ name : Install mise
31
+ command : curl https://mise.run | MISE_INSTALL_PATH=/home/circleci/bin/mise sh
43
32
- run :
44
- name : Install GoReleaser
45
- command : |
46
- echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list
47
- apt -q update -y
48
- apt -q install -y --no-install-recommends goreleaser=<< parameters.version >>
33
+ name : Activate mise
34
+ command : echo 'eval "$(mise activate bash)"' >> $BASH_ENV
49
35
- run :
50
- name : Output GoReleaser version
51
- command : goreleaser --version
36
+ name : Install mise dependencies
37
+ command : mise install
52
38
53
39
install-go-modules :
54
40
steps :
61
47
executor : default
62
48
steps :
63
49
- checkout-with-submodules
50
+ - install-dependencies
64
51
- run :
65
52
name : Check versions
66
53
command : just check-monorepo-versions
71
58
FOUNDRY_PROFILE : ci
72
59
steps :
73
60
- checkout-with-submodules
61
+ - install-dependencies
74
62
- run :
75
63
name : Run Forge build
76
64
command : just build-contracts
82
70
executor : default
83
71
steps :
84
72
- checkout-with-submodules
85
- - install-go-modules
86
- - install-golangci-lint
73
+ - install-dependencies
87
74
- run :
88
75
name : Run linter
89
76
command : just lint-go
@@ -92,12 +79,14 @@ jobs:
92
79
executor : default
93
80
steps :
94
81
- checkout-with-submodules
82
+ - install-dependencies
95
83
- install-go-modules
96
84
- run :
97
85
# We need to "rename" some of the variables coming from the CircleCI context
98
86
# to match what supersim expects
99
87
name : Setup environment variables
100
88
command : |
89
+ echo "export SUPERSIM_RPC_URL_MAINNET=$RPC_URL_ETHEREUM_MAINNET" >> $BASH_ENV
101
90
echo "export SUPERSIM_RPC_URL_OP=$RPC_URL_OP_MAINNET" >> $BASH_ENV
102
91
echo "export SUPERSIM_RPC_URL_BASE=$RPC_URL_BASE_MAINNET" >> $BASH_ENV
103
92
- run :
@@ -109,10 +98,12 @@ jobs:
109
98
executor : default
110
99
steps :
111
100
- checkout-with-submodules
112
- - install-goreleaser
101
+ - install-dependencies
113
102
- install-go-modules
114
103
- utils/get-github-access-token :
115
- # GoReleaser expects a GITHUB_TOKEN environment variable to be set
104
+ # GoReleaser uses the GITHUB_TOKEN environment variable to authenticate with GitHub
105
+ #
106
+ # It's important that the token has write permissions both to this repository and to the homebrew-tap repository
116
107
output-token-name : GITHUB_TOKEN
117
108
- run :
118
109
name : Run GoReleaser
0 commit comments