veilid/.gitlab-ci.yml

78 lines
1.1 KiB
YAML
Raw Normal View History

variables:
2022-11-22 17:16:53 -05:00
NO_DOCKER: 1
FORCE_COLOR: 1
EARTHLY_EXEC_CMD: "/bin/sh"
2022-11-27 00:18:08 -05:00
GIT_SUBMODULE_STRATEGY: normal
stages:
- build
- test
- package
- distribute
2021-11-24 16:49:13 -05:00
2022-11-22 17:16:53 -05:00
before_script:
- earthly bootstrap
2021-12-05 15:22:28 -05:00
build_amd64:
stage: build
2023-02-18 18:02:36 -05:00
only:
- main
- merge_requests
2022-11-22 17:16:53 -05:00
image: earthly/earthly:v0.6.30
2021-12-05 15:22:28 -05:00
tags:
- linux
- amd64
2021-11-24 16:49:13 -05:00
script:
- earthly +build-linux-amd64
when: manual
test_amd64:
stage: test
needs:
- job: build_amd64
only:
2023-06-21 01:41:09 -04:00
- main
tags:
2023-06-21 02:01:47 -04:00
- linux
- amd64
script:
- earthly +unit-tests-linux-amd64
package_amd64:
stage: package
needs:
- job: test_amd64
only:
- main
tags:
- linux
- amd64
script:
- earthly +package-linux-amd64
distribute_amd64:
stage: distribute
needs:
- job: package_amd64
only:
- main
tags:
- linux
- amd64
script:
- /home/gitlab-runner/distribute-packages.sh
2023-06-18 22:58:17 -04:00
#earthly-arm64:
# stage: linux-arm64
# only:
# - main
# - merge_requests
# image: earthly/earthly:v0.6.30
# tags:
# - linux
# - amd64
# script:
# - earthly --ci -P +package-linux-arm64