提交 be2abb98 编写于 作者: L LINxiansheng 提交者: 羽飞

Add github action to compile

上级 7e8bf7f6
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册