-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 2 KB
/
oyster-control-plane.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
name: Build oyster-control-plane
on:
workflow_dispatch:
inputs:
oyster-control-plane-version:
description: 'oyster-control-plane version'
# required: false
default: 'vX.Y.Z-beta.U'
jobs:
build_linux:
name: Build oyster-control-plane linux
strategy:
matrix:
include:
- os: 'ubuntu-24.04'
runs-on: 'ubicloud'
build_type: Release
GOOS: linux
GOARCH: amd64
rust-image: 'ed7795c6eaccae53be35939e883e8c3de0197b21e8eddbd9f04b0c4bc757c094'
target: x86_64-unknown-linux-musl
- os: 'ubuntu-24.04'
runs-on: 'ubicloud-standard-8-arm'
build_type: Release
GOOS: linux
GOARCH: arm64
rust-image: 'c428882ff081342a9661fb13a1d059ecdc0b6e979ffec64b80371cf20a2088b0'
target: aarch64-unknown-linux-musl
runs-on: ${{ matrix.runs-on }}
outputs:
oyster-control-plane-checksum: ${{steps.oyster-control-plane.outputs.checksum}}
steps:
- name: echo
run: |
echo oyster-control-plane-version ${{github.event.inputs.oyster-control-plane-version}}
- name: clone
run: rm -rf oyster-control-plane && git clone https://github.com/marlinprotocol/oyster-control-plane
- name: checkout
run: cd oyster-control-plane && git checkout master
- name: build
run: cd oyster-control-plane && sudo docker run --rm -v `pwd`:/code rust@sha256:${{matrix.rust-image}} /code/build-${{matrix.GOARCH}}.sh
- name: upload oyster-control-plane
id: oyster-control-plane
if: ${{github.event.inputs.oyster-control-plane-version != 'vX.Y.Z-beta.U'}}
run: |
AWS_ACCESS_KEY_ID=${{secrets.AWS_ACCESS_KEY_ID}} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} aws s3 cp --endpoint-url ${{secrets.AWS_S3_ENDPOINT}} oyster-control-plane/target/${{ matrix.target }}/release/control-plane s3://artifacts/oyster/binaries/control-plane_${{github.event.inputs.oyster-control-plane-version}}_${{matrix.GOOS}}_${{matrix.GOARCH}}