rocksdb #29

Merged
jeffreypicard merged 93 commits from feature/27/jeffreypicard/rocksdb into master 2022-04-29 17:04:01 +02:00
5 changed files with 37 additions and 0 deletions
Showing only changes of commit 2e93b895c0 - Show all commits

12
.github/workflows/build-short-new.yml vendored Normal file
View 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
View 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
View 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
View 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
View file

@ -0,0 +1,3 @@
#!/bin/bash
go build .
lyoshenka commented 2022-04-15 16:12:22 +02:00 (Migrated from github.com)
Review

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 change

but if they change often, then its fine to leave it here

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 change but if they change often, then its fine to leave it here
go test -v -race ./...