-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): CI pipeline to build and test CPP SDK
- Loading branch information
1 parent
208cf56
commit 70cb8da
Showing
2 changed files
with
267 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: CXX build | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'next' | ||
|
||
env: | ||
HUSKY: 0 | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
container: | ||
image: kevinshahfws/node-c:3.0 | ||
steps: | ||
# Checkout/install project | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Gcovr | ||
run: | | ||
apt remove --purge gcovr -y | ||
pip install --upgrade gcovr | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 'lts/*' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Clone and Install Thunder | ||
id: install_thunder | ||
run: | | ||
.github/workflows/utils.sh cloneAndInstallThunder | ||
- name: Build Artifacts | ||
run: | | ||
npm run dist | ||
- name: Build CXX | ||
run: | | ||
cd src/sdks/core/ | ||
ls | ||
npm run cpp | ||
- name: Build SDK | ||
run: | | ||
tar -zxvf src/sdks/core/build/cpp/src/firebolt-core-native-sdk-1.3.0-next.1.tgz -C ../ | ||
cd ../firebolt-core-native-sdk-1.3.0-next.1 | ||
cp -f ../firebolt-apis/external/CMakeLists.txt ./ | ||
cp -f ../firebolt-apis/external/include/json_engine.h ./include/ | ||
cp -f ../firebolt-apis/external/src/CMakeLists.txt ./src/ | ||
cp -f ../firebolt-apis/external/src/Transport.h ./src/ | ||
./build.sh -s ${pwd}/../install | ||
ls build/test/ | ||
ctest --test-dir build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters