-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (40 loc) · 1.02 KB
/
shared.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Shared Library
on:
push:
branches:
- '*'
tags-ignore:
- 'v*'
jobs:
build_on_linux_ubuntu24_04_release_shared:
runs-on: ubuntu-24.04
strategy:
matrix:
cc: [ g++-14, clang++-17 ]
option: [ on, off ]
steps:
- uses: actions/checkout@v4
- name: prepare
run: |
sudo apt update
sudo apt install language-pack-ja ninja-build lld lld-17 llvm-17 llvm-17-dev llvm-17-linker-tools
- name: configure
run: |
mkdir build
cd build
cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=release \
-DCMAKE_CXX_COMPILER=${{ matrix.cc }} \
-DUSE_LTO=${{ matrix.option }} \
-DBUILD_SHARED_LIB=ON \
-DUSE_EXTRA_TEST=on
- name: build
run: |
cd build
ninja
sudo ninja install
arsh ../scripts/copy_mod4extra.ds
- name: test
run: |
cd build
ctest -j4 --output-on-failure