2022-09-15 13:42:49 +02:00
|
|
|
variables:
|
2023-02-08 11:15:41 +01:00
|
|
|
- &vlang_image 'git.rustybever.be/chewing_bever/vlang:0.3.3-alpine3.17'
|
2022-09-15 13:42:49 +02:00
|
|
|
|
2022-04-10 16:48:37 +02:00
|
|
|
matrix:
|
|
|
|
PLATFORM:
|
2022-05-05 09:35:19 +02:00
|
|
|
- 'linux/amd64'
|
|
|
|
- 'linux/arm64'
|
2022-04-10 16:48:37 +02:00
|
|
|
|
2022-04-12 21:56:08 +02:00
|
|
|
branches:
|
2022-05-05 09:35:19 +02:00
|
|
|
exclude: [ main ]
|
2022-04-10 16:48:37 +02:00
|
|
|
platform: ${PLATFORM}
|
|
|
|
|
|
|
|
pipeline:
|
2022-06-22 09:44:25 +02:00
|
|
|
install-modules:
|
2022-09-15 13:42:49 +02:00
|
|
|
image: *vlang_image
|
2022-06-22 09:44:25 +02:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- export VMODULES=$PWD/.vmodules
|
|
|
|
- 'cd src && v install'
|
|
|
|
when:
|
|
|
|
event: [pull_request]
|
|
|
|
|
2022-04-10 16:48:37 +02:00
|
|
|
test:
|
2022-09-15 13:42:49 +02:00
|
|
|
image: *vlang_image
|
2022-04-10 16:48:37 +02:00
|
|
|
pull: true
|
|
|
|
commands:
|
2022-06-22 09:59:44 +02:00
|
|
|
- export VMODULES=$PWD/.vmodules
|
2022-04-10 16:48:37 +02:00
|
|
|
- make test
|
|
|
|
when:
|
2022-05-05 23:30:54 +02:00
|
|
|
event: [pull_request]
|