summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-02-28 21:13:24 +0100
committerAki <please@ignore.pl>2023-02-28 21:13:24 +0100
commit634f0a07be47972237004256aa0223ccb958e8e1 (patch)
tree1e163b90efad6f13cc19b8f7e20c6191b483b3d4 /.gitlab-ci.yml
parent09c65f2822b99e43ccbc20a84998b1cc3e26eae8 (diff)
parentfa116950ed55f55fac4fccffeb59412d75666125 (diff)
downloadkurator-634f0a07be47972237004256aa0223ccb958e8e1.zip
kurator-634f0a07be47972237004256aa0223ccb958e8e1.tar.gz
kurator-634f0a07be47972237004256aa0223ccb958e8e1.tar.bz2
Merge branch 'archlinux-pipelines'
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml65
1 files changed, 65 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..e503e69
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,65 @@
+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: ["build-linux", "test-linux"]
+ script:
+ - cmake --install build-linux/ --prefix kurator-x86_64-linux/
+ artifacts:
+ name: kurator-x86_64-linux
+ paths:
+ - kurator-x86_64-linux/
+
+package-windows:
+ stage: package
+ needs: ["build-windows", "test-windows"]
+ script:
+ - cmake --install build-windows/ --prefix kurator-x86_64-windows/
+ - cp /usr/x86_64-w64-mingw32/bin/{libssp-0,libgcc_s_seh-1,libraylib,libstdc++-6,libwinpthread-1}.dll kurator-x86_64-windows/
+ artifacts:
+ name: kurator-x86_64-windows
+ paths:
+ - kurator-x86_64-windows/