-
Notifications
You must be signed in to change notification settings - Fork 32
62 lines (52 loc) · 1.73 KB
/
release.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
name: release
on:
push:
# branches:
# - master
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-20.04-16c-64g
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Sanity Check
run: |
cat /proc/cpuinfo
- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
caller-workflow-name: test
- name: Clippy check
run: cargo clippy --all-features --all-targets --tests -- -D warnings
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# see https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PWD }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: jitolabs/jito-shredstream-proxy:${{github.ref_name}}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/arm64,linux/x86_64
- name: Copy artifact from container
run: |
docker run --rm --platform linux/x86_64 --entrypoint cat jitolabs/jito-shredstream-proxy:${{github.ref_name}} /app/jito-shredstream-proxy > ./jito-shredstream-proxy-x86_64-unknown-linux-gnu
ls -lh .
file ./jito-shredstream-proxy-x86_64-unknown-linux-gnu
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./jito-shredstream-proxy-x86_64-unknown-linux-gnu