Skip to content

Commit

Permalink
feat(build): cstor repo migration to mayadata-io org
Browse files Browse the repository at this point in the history
Signed-off-by: Pawan <[email protected]>
  • Loading branch information
pawanpraka1 committed Mar 10, 2022
1 parent b15b6d2 commit 533761e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
jobs:

cstor:
runs-on: ubuntu-16.04
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
Expand All @@ -34,9 +34,9 @@ jobs:
- name: Set Branch
run: |
BRANCH="${GITHUB_REF##*/}"
REPO_ORG=${{ github.repository_owner }}
LCSTOR_ORG=openebs
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
echo "REPO_ORG=${REPO_ORG}" >> $GITHUB_ENV
echo "LCSTOR_ORG=${LCSTOR_ORG}" >> $GITHUB_ENV
- name: Install Tool dependencies
run: buildscripts/install-tool-dep.sh
Expand Down
13 changes: 7 additions & 6 deletions buildscripts/install-build-dep.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/bin/bash

# Mandatory variables
# $REPO_ORG organisation from which to clone the dependent repositories
# $LCSTOR_ORG organisation from which to clone the dependent repositories
# $BRANCH to be used for building
#
# Optional variables
# $UZFS_BUILD variable need to be set. If not kernel mode zfs will be built

if [ -z "${REPO_ORG}" ]; then
echo "REPO_ORG variable not set. Required for fetching dependent build repositories"

if [ -z "${LCSTOR_ORG}" ]; then
echo "LCSTOR_ORG variable not set. Required for fetching dependent build repositories"
exit 1
else
echo "Using repository organization: ${REPO_ORG}"
echo "Using repository organization: ${LCSTOR_ORG}"
fi

if [ -z "${BRANCH}" ]; then
Expand Down Expand Up @@ -51,7 +52,7 @@ make -j4
cd ..

# clone and build SPL
git clone https://github.com/${REPO_ORG}/spl
git clone https://github.com/${LCSTOR_ORG}/spl
cd spl || exit 1
git checkout spl-0.7.9
sh autogen.sh
Expand All @@ -67,7 +68,7 @@ fi
cd ..

# Build libcstor for uzfs feature
git clone https://github.com/${REPO_ORG}/libcstor.git
git clone https://github.com/${LCSTOR_ORG}/libcstor.git
cd libcstor || exit 1
if [ "${BRANCH}" == "develop" ]; then
git checkout develop
Expand Down

0 comments on commit 533761e

Please sign in to comment.