Skip to content

Commit

Permalink
ci: add basic build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amyangfei committed Aug 21, 2024
1 parent 878f5f3 commit f6d5d4b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build CI

on:
push:
branches: [ "8.0" ]
pull_request:
branches: [ "8.0" ]

jobs:
build:

runs-on: ubuntu-latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
container:
image: "centos:7"

steps:

- name: Checkout
uses: actions/checkout@v3

- name: Build Test
run: |
yum install -y git ncurses-devel bison cmake3 libaio-devel openssl openssl-devel cyrus-sasl-devel openldap-devel gtest libtirpc-devel
yum install -y centos-release-scl
yum install -y devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-binutils
source /opt/rh/devtoolset-10/enable
gcc --version
curl -O --output-dir depend https://archives.boost.io/release/1.70.0/source/boost_1_70_0.tar.gz
tar xvzf depend/boost_1_70_0.tar.gz
./build.sh -b depend/boost_1_70_0 -D 1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ source_downloads
#compile temporary dirs and files
bld
mysql_install
bld-debug

#will automatic unzip from depend/boost_1_70_0.tgz
depend/boost_1_70_0
Expand Down

0 comments on commit f6d5d4b

Please sign in to comment.