mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05: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:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
cmake.org: ^3
|
cmake.org: ^3
|
||||||
working-directory: build
|
script:
|
||||||
script: |
|
- cmake . -B build $ARGS -DBUILD_SHARED_LIBS=ON
|
||||||
cmake .. $ARGS
|
- run: make --jobs {{ hw.concurrency }} install
|
||||||
make --jobs {{ hw.concurrency }} install
|
working-directory: build
|
||||||
|
- cmake . -B build-static $ARGS -DBUILD_SHARED_LIBS=OFF
|
||||||
|
- run: make --jobs {{ hw.concurrency }} install
|
||||||
|
working-directory: build-static
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
||||||
|
@ -23,17 +26,17 @@ build:
|
||||||
- -DCMAKE_EXE_LINKER_FLAGS=-pie
|
- -DCMAKE_EXE_LINKER_FLAGS=-pie
|
||||||
|
|
||||||
test:
|
test:
|
||||||
fixture: |
|
- run: c++ $FIXTURE -lfmt -std=c++11
|
||||||
#include <iostream>
|
fixture:
|
||||||
#include <string>
|
extname: cc
|
||||||
#include <fmt/format.h>
|
content: |
|
||||||
int main()
|
#include <iostream>
|
||||||
{
|
#include <string>
|
||||||
std::string str = fmt::format("The answer is {}", 42);
|
#include <fmt/format.h>
|
||||||
std::cout << str;
|
int main()
|
||||||
return 0;
|
{
|
||||||
}
|
std::string str = fmt::format("The answer is {}", 42);
|
||||||
script: |
|
std::cout << str;
|
||||||
mv $FIXTURE fixture.cc
|
return 0;
|
||||||
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