Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize: Use Ocean's ebtree workflow, update submodules #235

Open
wants to merge 2 commits into
base: v15.x.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 5 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: CI
on: [push, pull_request]

jobs:
setup-ebtree:
uses: sociomantic-tsunami/ocean/.github/workflows/[email protected]
with:
os: ubuntu-20.04
main:
name: Run
strategy:
Expand All @@ -21,40 +25,15 @@ jobs:

runs-on: ${{ matrix.os }}
timeout-minutes: 30
needs: setup-ebtree
steps:
- name: "Ensure tools/ exists"
run: mkdir -p ${{ github.workspace }}/tools/

- name: 'Restore ebtree from cache'
id: cache-ebtree
uses: actions/cache@v1
with:
path: ${{ github.workspace }}/tools/
key: ebtree

- name: 'Checkout ebtree ${{ matrix.ebtree_version }}'
uses: actions/checkout@v2
if: steps.cache-ebtree.outputs.cache-hit != 'true'
with:
repository: sociomantic-tsunami/ebtree
ref: ${{ matrix.ebtree_version }}
# Relative to Github workspace
path: tools/ebtree

- name: 'Build ebtree ${{ matrix.ebtree_version }}'
if: steps.cache-ebtree.outputs.cache-hit != 'true'
run: |

# fpm is used to build the `.deb` and depends on ruby
sudo apt-get update
sudo apt-get install -y build-essential ruby ruby-dev
sudo gem install --no-document fpm
# Build the debian package
# Package lives in tools/ebtree/deb/libebtree6[-{dbg,dev}]_$VERSION-distro_arch.deb
# $VERSION is ${{ matrix.ebtree_version }} without the leading 'v'
# E.g. libebtree6[-{dbg,dev}]_6.0.socio10-bionic_amd64.deb
make -C '${{ github.workspace }}/tools/ebtree' deb

- name: Install dependencies
run: |
sudo apt-get update && \
Expand Down
2 changes: 1 addition & 1 deletion submodules/swarm
2 changes: 1 addition & 1 deletion submodules/turtle
Loading