~quf/libcs3tio

574b05b3d38a9cf08805f8b939bf0cd155b40635 โ€” Lukas Himbert 9 months ago 7fba467
build manifest
4 files changed, 21 insertions(+), 7 deletions(-)

R .build.yml => .builds/arch-clang.yml
A .builds/arch-gcc.yml
M compile.sh
M test/roundtrip.cpp
R .build.yml => .builds/arch-clang.yml +5 -2
@@ 2,9 2,12 @@ image: archlinux
packages:
  - base-devel
  - clang
sources:
  - https://git.sr.ht/~quf/libcs3tio
tasks:
  - check-indentation: |
      cd libcs3tio
      clang-format -style=file --dry-run -Werror -i src/* test/*
  - todo: |
      false
  - compile: |
      cd libcs3tio
      bash compile.sh

A .builds/arch-gcc.yml => .builds/arch-gcc.yml +9 -0
@@ 0,0 1,9 @@
image: archlinux
packages:
  - base-devel
sources:
  - https://git.sr.ht/~quf/libcs3tio 
tasks:
  - compile: |
      cd libcs3tio
      bash compile.sh

M compile.sh => compile.sh +2 -3
@@ 18,8 18,7 @@ done

ar cr build/output/libcs3tio.a build/obj/*.o build/obj-ksp/*.o

"$CXX" -std=c++20 -W -Wall -Werror -Wfatal-errors -fsanitize=address,undefined -I src test/tio.cpp build/output/libcs3tio.a -o build/test/tio
for x in compiles roundtrip; do
for x in compiles tio roundtrip; do
  "$CXX" -std=c++20 -W -Wall -Werror -Wfatal-errors -fsanitize=address,undefined -I src test/$x.cpp build/output/libcs3tio.a -o build/test/$x
  build/test/$x
  #build/test/$x
done

M test/roundtrip.cpp => test/roundtrip.cpp +5 -2
@@ 53,8 53,11 @@ void check_file(const std::filesystem::path &fn) {
  std::cout << "  OK ใงใ™" << std::endl;
}

int main(void) {
  auto dir = std::filesystem::path("/home/user/installed_games/tocs3-vanilla/drive_c/GOG Games/ToCS3/data/text/");
int main(int argc, char *argv[]) {
  if (argc != 2) {
    throw std::runtime_error("expected directory name as single cli argument");
  }
  auto dir = std::filesystem::path(argv[1]);
  for (const auto &file : std::filesystem::recursive_directory_iterator(dir)) {
    if (file.is_regular_file() && (file.path().extension() == ".tbl")) {
      check_file(file.path());