mirror of
https://github.com/hyprwm/hyprlang.git
synced 2024-11-17 02:25:59 +01:00
ugh
This commit is contained in:
parent
e7c2cca15e
commit
3c3cdefa67
2 changed files with 12 additions and 2 deletions
2
.github/workflows/arch.yml
vendored
2
.github/workflows/arch.yml
vendored
|
@ -30,6 +30,7 @@ jobs:
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
CC="/usr/bin/clang" CXX="/usr/bin/clang++" cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
CC="/usr/bin/clang" CXX="/usr/bin/clang++" cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
||||||
CC="/usr/bin/clang" CXX="/usr/bin/clang++" cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
CC="/usr/bin/clang" CXX="/usr/bin/clang++" cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
||||||
|
rm ./build/hyprlang.so
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
|
@ -63,6 +64,7 @@ jobs:
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
CC="/usr/bin/gcc" CXX="/usr/bin/g++" cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
CC="/usr/bin/gcc" CXX="/usr/bin/g++" cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
||||||
CC="/usr/bin/gcc" CXX="/usr/bin/g++" cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
CC="/usr/bin/gcc" CXX="/usr/bin/g++" cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
||||||
|
rm ./build/hyprlang.so
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -55,8 +55,16 @@ int main(int argc, char** argv, char** envp) {
|
||||||
std::cout << "Starting test\n";
|
std::cout << "Starting test\n";
|
||||||
|
|
||||||
Hyprlang::CConfig config("./config/config.conf");
|
Hyprlang::CConfig config("./config/config.conf");
|
||||||
pConfig = &config;
|
|
||||||
currentPath = std::filesystem::canonical("./config/");
|
try {
|
||||||
|
pConfig = &config;
|
||||||
|
currentPath = std::filesystem::canonical("./config/");
|
||||||
|
} catch (std::logic_error& e) {
|
||||||
|
std::cout << "err " << e.what() << std::endl;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::cout << "start add" << std::endl;
|
||||||
|
|
||||||
// setup config
|
// setup config
|
||||||
config.addConfigValue("testInt", 0L);
|
config.addConfigValue("testInt", 0L);
|
||||||
|
|
Loading…
Reference in a new issue