rocksdb #29
5 changed files with 37 additions and 0 deletions
12
.github/workflows/build-short-new.yml
vendored
Normal file
12
.github/workflows/build-short-new.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
name: 'Build and Test Hub 2'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Build and Test
|
||||||
|
uses: lbryio/hub
|
5
Dockerfile.action
Normal file
5
Dockerfile.action
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
FROM jeffreypicard/hub-github-env
|
||||||
|
|
||||||
|
COPY scripts/build_and_test.sh /build_and_test.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["/build_and_test.sh"]
|
12
Dockerfile.github
Normal file
12
Dockerfile.github
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
FROM golang:1.16.11-bullseye
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get upgrade && \
|
||||||
|
apt-get install git libsnappy-dev liblz4-dev libzstd-dev zlib1g-dev
|
||||||
|
RUN git clone https://github.com/facebook/rocksdb.git && \
|
||||||
|
cd rocksdb && \
|
||||||
|
git checkout v6.26.1 && \
|
||||||
|
make shared_lib && \
|
||||||
|
make install-shared
|
||||||
|
|
||||||
|
CMD ["bash"]
|
5
action.yml
Normal file
5
action.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
name: 'Build and Test'
|
||||||
|
description: 'Build and test hub'
|
||||||
|
runs:
|
||||||
|
using: 'docker'
|
||||||
|
image: 'Dockerfile.action'
|
3
scripts/build_and_test.sh
Executable file
3
scripts/build_and_test.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
go build .
|
||||||
|
|||||||
|
go test -v -race ./...
|
Loading…
Reference in a new issue
do you see these changing often? id be careful cause diff versions of
protoc
could introduce cosmetic changes with big diffs that dont do much. i suggest that building protobufs should be a separate optional build step just for when they changebut if they change often, then its fine to leave it here