.github/workflows/build-centos.yml #8
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
on: | |
workflow_dispatch: | |
env: | |
wf_tag: v0.11.6 | |
coke_sha: 7f7af4140b5a1bca5c004f47bb25d9cb0ef8d4ae | |
jobs: | |
build-centos7: | |
name: centos7 | |
runs-on: ubuntu-22.04 | |
container: | |
image: centos:centos7.9.2009 | |
steps: | |
- name: Prepare | |
run: | | |
yum install --nogpgcheck -y epel-release centos-release-scl | |
yum install --nogpgcheck -y devtoolset-11-gcc devtoolset-11-gcc-c++ openssl openssl-devel git cmake3 | |
- uses: actions/checkout@v3 | |
- uses: actions/checkout@v3 | |
with: | |
repository: sogou/workflow | |
ref: ${{ env.wf_tag }} | |
path: workflow | |
- uses: actions/checkout@v3 | |
with: | |
repository: kedixa/coke | |
ref: ${{ env.coke_sha }} | |
path: coke | |
- name: Build | |
run: | | |
scl enable devtoolset-11 "cmake3 -S workflow -B build.workflow -D CMAKE_CXX_STANDARD=20" | |
scl enable devtoolset-11 "make -C build.workflow -j 8" | |
scl enable devtoolset-11 "cmake3 -S coke -B build.coke -D Workflow_DIR=../workflow" | |
scl enable devtoolset-11 "make -C build.coke -j 8" | |
scl enable devtoolset-11 "cmake3 -S . -B build.cmake -D Workflow_DIR=workflow -D Coke_DIR=build.coke" | |
scl enable devtoolset-11 "make -C build.cmake -j 8" | |
mkdir fcopy-centos7 | |
cp build.cmake/fcopy-cli build.cmake/fcopy-server fcopy-centos7 | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: fcopy-centos7 | |
path: fcopy-centos7 |