mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(fmt)
This commit is contained in:
parent
e29e9faf7a
commit
0c2e333750
1 changed files with 21 additions and 18 deletions
|
@ -8,10 +8,13 @@ versions:
|
|||
build:
|
||||
dependencies:
|
||||
cmake.org: ^3
|
||||
script:
|
||||
- cmake . -B build $ARGS -DBUILD_SHARED_LIBS=ON
|
||||
- run: make --jobs {{ hw.concurrency }} install
|
||||
working-directory: build
|
||||
script: |
|
||||
cmake .. $ARGS
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
- cmake . -B build-static $ARGS -DBUILD_SHARED_LIBS=OFF
|
||||
- run: make --jobs {{ hw.concurrency }} install
|
||||
working-directory: build-static
|
||||
env:
|
||||
ARGS:
|
||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
||||
|
@ -23,7 +26,10 @@ build:
|
|||
- -DCMAKE_EXE_LINKER_FLAGS=-pie
|
||||
|
||||
test:
|
||||
fixture: |
|
||||
- run: c++ $FIXTURE -lfmt -std=c++11
|
||||
fixture:
|
||||
extname: cc
|
||||
content: |
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <fmt/format.h>
|
||||
|
@ -33,7 +39,4 @@ test:
|
|||
std::cout << str;
|
||||
return 0;
|
||||
}
|
||||
script: |
|
||||
mv $FIXTURE fixture.cc
|
||||
c++ fixture.cc -lfmt -std=c++11
|
||||
test "$(./a.out)" = "The answer is 42"
|
||||
- test "$(./a.out)" = "The answer is 42"
|
||||
|
|
Loading…
Reference in a new issue