image: registry.gitlab.com/kurator1/kurator/archlinux-kurator stages: - build - test - package build-linux: stage: build script: - cmake -B build-linux/ . - cmake --build build-linux/ artifacts: paths: - build-linux/ build-windows: stage: build script: - x86_64-w64-mingw32-cmake -B build-windows/ . - cmake --build build-windows/ artifacts: paths: - build-windows/ test-linux: stage: test needs: ["build-linux"] script: - ctest --test-dir build-linux/ --output-junit linux.xml artifacts: reports: junit: build-linux/linux.xml test-windows: stage: test needs: ["build-windows"] before_script: - x86_64-w64-mingw32-wine hostname script: - ctest --test-dir build-windows/ --output-junit windows.xml artifacts: reports: junit: build-windows/windows.xml package-linux: stage: package needs: ["test-linux"] script: - cmake --install build-linux/ --prefix pkg - cd pkg/ && tar cJf ../kurator-x86_64-linux.tar.xz * artifacts: paths: - kurator-x86_64-linux.tar.xz package-windows: stage: package needs: ["test-windows"] script: - cmake --install build-windows/ --prefix pkg - cp /usr/x86_64-w64-mingw32/bin/{libssp-0,libgcc_s_seh-1,libraylib,libstdc++-6,libwinpthread-1}.dll pkg/ - cd pkg/ && tar cJf ../kurator-x86_64-windows.tar.xz * artifacts: paths: - kurator-x86_64-windows.tar.xz