Skip to content

Commit

Permalink
Port CI to next branch (fetchai#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejfitzgerald authored Jun 10, 2020
1 parent bad4ca7 commit 5a1ad06
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 177 deletions.
13 changes: 0 additions & 13 deletions .github/CODEOWNERS

This file was deleted.

38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

36 changes: 0 additions & 36 deletions .github/ISSUE_TEMPLATE/feature-request.md

This file was deleted.

34 changes: 0 additions & 34 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

45 changes: 0 additions & 45 deletions .github/stale.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and test
on:
push:
branches:
- master
- next
- release/*
pull_request:
branches:
- master
- next
- release/*

jobs:
build-and-test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up ssh keys
uses: webfactory/ssh-agent@v0.2.0
with:
ssh-private-key: ${{ secrets.FETCH_BOT_SSH_KEY }}
- name: Build Docker container
env:
DOCKER_BUILDKIT: 1
run: |
docker build \
--no-cache \
--progress plain \
--ssh default \
--tag fetch_cosmos_sdk:$GITHUB_SHA \
--file ./ci.Dockerfile \
./
- name: Run make test
run: |
docker run --rm fetch_cosmos_sdk:$GITHUB_SHA \
make test
11 changes: 0 additions & 11 deletions .github/workflows/linkchecker.yml

This file was deleted.

34 changes: 34 additions & 0 deletions ci.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#syntax = docker/dockerfile:experimental
#export DOCKER_BUILDKIT=1

FROM golang:buster

ENV GOPRIVATE="github.com/fetchai/*"

WORKDIR /workspace/mcl
RUN --mount=type=ssh \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
curl \
wget \
jq \
file \
make \
git \
libgmp-dev \
gcc \
g++ \
swig \
libboost-serialization-dev && \
git clone https://github.com/herumi/mcl && cd mcl && make install && ldconfig && \
mkdir -m 700 /root/.ssh && \
touch -m 600 /root/.ssh/known_hosts && \
git config --global url."git@github.com:".insteadOf https://github.com/ && \
ssh-keyscan github.com > /root/.ssh/known_hosts

WORKDIR /workspace/cosmos-sdk
COPY . .
RUN --mount=type=ssh \
make go-mod-cache && \
make build

0 comments on commit 5a1ad06

Please sign in to comment.