From be2abb986f430fb2efbd043e4cfeb336fab8478f Mon Sep 17 00:00:00 2001 From: LINxiansheng Date: Fri, 22 Jul 2022 18:22:06 +0800 Subject: [PATCH] Add github action to compile --- .github/workflows/compile.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 000000000..57b6db43f --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,42 @@ +name: Compile + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + ubuntu-x86_64: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: Install environment + shell: bash + run: sudo apt-get install -y git wget rpm rpm2cpio cpio make build-essential binutils m4 + + - name: Build project + shell: bash + run: | + bash build.sh init + bash build.sh debug + cd build_debug && make -j4 + + centos-x86_64: + runs-on: ubuntu-18.04 + container: centos:7 + steps: + - uses: actions/checkout@v2 + + - name: Install environment + shell: bash + run: yum install -y git wget rpm* cpio make glibc-devel glibc-headers binutils m4 + + - name: Build project + shell: bash + run: | + bash build.sh init + bash build.sh debug + cd build_debug && make -j4 +