ulib/.gitea/workflows/linux-x64-gcc.yml
tqcq e4b4c8d2c2
All checks were successful
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 56s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m22s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m8s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m11s
linux-x64-gcc / linux-gcc (push) Successful in 44s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 48s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m5s
fix build after 3party update
2023-12-26 21:25:11 +08:00

58 lines
1.4 KiB
YAML

name: linux-x64-gcc
on:
push:
paths:
- ".gitea/workflows/linux-x64-gcc.yml"
- "3party/**"
- "src/**"
- "tests/**"
- "CMakeLists.txt"
- "cmake/**"
pull_request:
paths:
- ".gitea/workflows/linux-x64-gcc.yml"
- "3party/**"
- "src/**"
- "tests/**"
- "CMakeLists.txt"
- "cmake/**"
concurrency:
group: linux-x64-gcc-${{ github.ref }}
cancel-in-progress: true
permissions:
- read
jobs:
linux-gcc:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: update
run: |
sudo apt-get update -y
sudo apt-get install -y cmake make
- name: configure
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DULIB_BUILD_TESTS=ON
- name: build
run: |
cmake --build build -j `nproc`
- name: test
run: |
cd build && ctest --output-on-failure -j `nproc`
- name: configure-shared
run: |
mkdir build-shared && cd build-shared
cmake .. -DCMAKE_BUILD_TYPE=Release -DULIB_BUILD_TESTS=ON -DULIB_SHARED_LIB=ON
- name: build-shared
run: |
cmake --build build-shared -j `nproc`
- name: test-shared
run: |
cd build-shared && ctest --output-on-failure -j `nproc`