GLdc/.gitlab-ci.yml

46 lines
1.2 KiB
YAML
Raw Normal View History

2019-02-27 19:29:33 +00:00
stages:
- build
2023-09-11 16:25:47 +00:00
- test
2019-02-27 19:29:33 +00:00
build:sh4-gcc:
stage: build
image: kazade/dreamcast-sdk
script:
- source /etc/bash.bashrc
2021-04-09 15:24:47 +00:00
- mkdir builddir
- cd builddir
2021-04-23 08:11:13 +00:00
- cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/Dreamcast.cmake -DCMAKE_BUILD_TYPE=Release ..
2021-04-09 15:24:47 +00:00
- make
2021-04-23 08:11:13 +00:00
- tar -zcf gldc.tar.gz libGLdc.a ../LICENSE ../README.md ../include
artifacts:
paths:
2021-04-24 10:31:11 +00:00
- builddir/gldc.tar.gz
2021-04-09 15:24:47 +00:00
build:x86-gcc:
stage: build
2023-09-11 16:25:47 +00:00
image: fedora:38
2021-04-09 15:24:47 +00:00
before_script:
2023-09-11 19:34:18 +00:00
- sudo dnf install -y cmake gcc gcc-c++ SDL2.i686 SDL2-devel.x86_64 glibc-devel glibc-devel.i686 SDL2-devel.i686 pkgconf-pkg-config.i686 pkgconf-pkg-config.x86_64
2021-04-09 15:24:47 +00:00
script:
- mkdir builddir
- cd builddir
2021-04-23 08:11:13 +00:00
- cmake -DCMAKE_BUILD_TYPE=Release ..
2021-04-09 15:24:47 +00:00
- make
2023-09-11 16:25:47 +00:00
artifacts:
paths:
- builddir/tests/gldc_tests
test:x86-gcc:
2023-09-11 16:29:59 +00:00
stage: test
2023-09-11 16:25:47 +00:00
image: fedora:38
2023-09-11 16:31:08 +00:00
dependencies:
- build:x86-gcc
2023-09-11 16:25:47 +00:00
before_script:
2023-09-11 18:55:26 +00:00
- sudo dnf install -y cmake gcc gcc-c++ SDL2.i686 SDL2-devel glibc-devel pkgconf-pkg-config glibc-devel.i686 SDL2-devel.i686 pkgconf-pkg-config.i686
2023-09-11 16:25:47 +00:00
script:
- cd builddir/tests/
- SDL_VIDEODRIVER=dummy ./gldc_tests --junit-xml=report.xml
artifacts:
reports:
junit: builddir/tests/report.xml