Skip to content

Commit

Permalink
Merge pull request #47 from rudi-cilibrasi/add-basic-build-cicd
Browse files Browse the repository at this point in the history
add basic build cicd
  • Loading branch information
zhenrong-wang authored Jun 11, 2024
2 parents 076d8e4 + 2965e5c commit a8b431c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/buildtest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI
on:
push:
jobs:
build-test-job:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: "actions/checkout@v4"
- name: Run Build Test
run: ./scripts/run_build_test.sh
3 changes: 2 additions & 1 deletion make_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ elif [ "$1" = "build" ]; then
echo -e "[ START: ] Building the binaries now (including hpcmgr and now-server) ..."
mkdir -p ./build
rm -rf ./build/*
set -e
${compiler} ./hpcopr/*.c -Wall -lpthread -o ./build/hpcopr-lin-${hpcopr_version_code}.exe
${compiler} -c ./hpcopr/general_funcs.c -Wall -o ./installer/gfuncs.o
${compiler} -c ./hpcopr/opr_crypto.c -Wall -o ./installer/ocrypto.o
Expand Down Expand Up @@ -69,4 +70,4 @@ else
echo -e "[ -DONE- ] Exit now."
exit 1
fi
echo -e "[ -DONE- ] Please check the console output for building results."
echo -e "[ -DONE- ] Please check the console output for building results."
11 changes: 11 additions & 0 deletions scripts/run_build_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (C) 2022-present Shanghai HPC-NOW Technologies Co., Ltd.
# This code is distributed under the license: MIT License
# Originally written by Zhenrong WANG
# mailto: [email protected] | [email protected]

#!/bin/bash

set -e
cd $(dirname $0)/..
rm -rf build && ./make_linux.sh build
exit 0

0 comments on commit a8b431c

Please sign in to comment.