Skip to content

Commit 86119a5

Browse files
committed
chore: reduce deps and improve build speed
1 parent a6c75f2 commit 86119a5

File tree

6 files changed

+250
-365
lines changed

6 files changed

+250
-365
lines changed

.github/workflows/go-ci.yaml

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,81 @@
1-
#name: Go CI
2-
#
3-
#on:
4-
# push:
5-
# branches:
6-
# - main
7-
# paths:
8-
# - "synd-withdrawals/synd-enclave/**"
9-
# - "synd-withdrawals/synd-proposer/**"
10-
# pull_request:
11-
# paths:
12-
# - "synd-withdrawals/synd-enclave/**"
13-
# - "synd-withdrawals/synd-proposer/**"
14-
#
15-
#concurrency:
16-
# group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
17-
# cancel-in-progress: true
18-
#
19-
#env:
20-
# GITHUB_REGISTRY: ghcr.io
21-
#
22-
#jobs:
23-
# enclave-build:
24-
# name: build enclave
25-
# runs-on: shared-large-01
26-
# steps:
27-
# - uses: actions/checkout@v4
28-
# - uses: actions/setup-go@v5
29-
# with:
30-
# go-version: "1.24"
31-
#
32-
# - name: Set up QEMU
33-
# uses: docker/setup-qemu-action@v3
34-
#
35-
# - name: Set up Docker Buildx
36-
# uses: docker/setup-buildx-action@v3
37-
#
38-
# - name: Pull submodules
39-
# run: |
40-
# cd synd-withdrawals/synd-enclave && \
41-
# git submodule update --init --recursive
42-
#
43-
# - name: Build enclave image
44-
# run: |
45-
# cd synd-withdrawals/synd-enclave
46-
# docker build --target eif-bin .
47-
# docker build --target local-dev .
48-
#
49-
# proposer-test:
50-
# name: test synd-proposer
51-
# runs-on: shared-large-01
52-
# permissions:
53-
# contents: read
54-
# id-token: write
55-
# packages: read
56-
#
57-
# steps:
58-
# - uses: actions/checkout@v4
59-
#
60-
# - name: Set up QEMU
61-
# uses: docker/setup-qemu-action@v3
62-
#
63-
# - name: Set up Docker Buildx
64-
# uses: docker/setup-buildx-action@v3
65-
#
66-
# - name: Login to GitHub Container Registry
67-
# uses: docker/login-action@v3
68-
# with:
69-
# registry: ${{ env.GITHUB_REGISTRY }}
70-
# username: ${{ github.repository_owner }}
71-
# password: ${{ secrets.GITHUB_TOKEN }}
72-
#
73-
# - name: Test synd-proposer via docker buildx
74-
# run: |
75-
# docker buildx build \
76-
# --target synd-proposer-test \
77-
# --tag synd-proposer-test \
78-
# --cache-from type=gha \
79-
# --cache-to type=gha,mode=max \
80-
# --platform linux/amd64 \
81-
# .
1+
name: Go CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "synd-withdrawals/synd-enclave/**"
9+
- "synd-withdrawals/synd-proposer/**"
10+
pull_request:
11+
paths:
12+
- "synd-withdrawals/synd-enclave/**"
13+
- "synd-withdrawals/synd-proposer/**"
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
17+
cancel-in-progress: true
18+
19+
env:
20+
GITHUB_REGISTRY: ghcr.io
21+
22+
jobs:
23+
enclave-build:
24+
name: build enclave
25+
runs-on: shared-large-01
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-go@v5
29+
with:
30+
go-version: "1.24"
31+
32+
- name: Set up QEMU
33+
uses: docker/setup-qemu-action@v3
34+
35+
- name: Set up Docker Buildx
36+
uses: docker/setup-buildx-action@v3
37+
38+
- name: Pull submodules
39+
run: |
40+
cd synd-withdrawals/synd-enclave && \
41+
git submodule update --init --recursive
42+
43+
- name: Build enclave image
44+
run: |
45+
cd synd-withdrawals/synd-enclave
46+
docker build --target eif-bin .
47+
docker build --target local-dev .
48+
49+
proposer-test:
50+
name: test synd-proposer
51+
runs-on: shared-large-01
52+
permissions:
53+
contents: read
54+
id-token: write
55+
packages: read
56+
57+
steps:
58+
- uses: actions/checkout@v4
59+
60+
- name: Set up QEMU
61+
uses: docker/setup-qemu-action@v3
62+
63+
- name: Set up Docker Buildx
64+
uses: docker/setup-buildx-action@v3
65+
66+
- name: Login to GitHub Container Registry
67+
uses: docker/login-action@v3
68+
with:
69+
registry: ${{ env.GITHUB_REGISTRY }}
70+
username: ${{ github.repository_owner }}
71+
password: ${{ secrets.GITHUB_TOKEN }}
72+
73+
- name: Test synd-proposer via docker buildx
74+
run: |
75+
docker buildx build \
76+
--target synd-proposer-test \
77+
--tag synd-proposer-test \
78+
--cache-from type=gha \
79+
--cache-to type=gha,mode=max \
80+
--platform linux/amd64 \
81+
.

.github/workflows/publish-image-withdrawals.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/publish-images.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ jobs:
7979
- name: Set up Docker Buildx
8080
uses: docker/setup-buildx-action@v3
8181

82-
# TODO remove `synd-proposer` below
8382
- name: Build and push services
8483
run: |
8584
if [ -z "${{ inputs.service }}" ]; then

0 commit comments

Comments
 (0)