-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Drone PR checks back, fix issue with GitHub Actions tests (#2708)
* Revert "Remove unnecessary Done builds. (#2695)" This reverts commit c990e48. * Fix issue with running all tests on GH Actions
- Loading branch information
Showing
5 changed files
with
388 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
local pipelines = import './pipelines.jsonnet'; | ||
|
||
(import 'pipelines/test.jsonnet') + | ||
(import 'pipelines/check_containers.jsonnet') + | ||
(import 'pipelines/crosscompile.jsonnet') + | ||
(import 'pipelines/publish.jsonnet') + | ||
(import 'util/secrets.jsonnet').asList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
local build_image = import '../util/build_image.jsonnet'; | ||
local pipelines = import '../util/pipelines.jsonnet'; | ||
|
||
local go_tags = { | ||
linux: 'builtinassets promtail_journal_enabled', | ||
windows: 'builtinassets', | ||
darwin: 'builtinassets', | ||
freebsd: 'builtinassets', | ||
}; | ||
|
||
local os_arch_tuples = [ | ||
// Linux | ||
{ name: 'Linux amd64', os: 'linux', arch: 'amd64' }, | ||
{ name: 'Linux arm64', os: 'linux', arch: 'arm64' }, | ||
{ name: 'Linux ppc64le', os: 'linux', arch: 'ppc64le' }, | ||
{ name: 'Linux s390x', os: 'linux', arch: 's390x' }, | ||
|
||
// Darwin | ||
{ name: 'macOS Intel', os: 'darwin', arch: 'amd64' }, | ||
{ name: 'macOS Apple Silicon', os: 'darwin', arch: 'arm64' }, | ||
|
||
// Windows | ||
{ name: 'Windows amd64', os: 'windows', arch: 'amd64' }, | ||
|
||
|
||
// FreeBSD | ||
{ name: 'FreeBSD amd64', os: 'freebsd', arch: 'amd64' }, | ||
]; | ||
|
||
|
||
local targets = [ | ||
'alloy', | ||
]; | ||
local targets_boringcrypto = [ | ||
'alloy', | ||
]; | ||
|
||
|
||
local os_arch_types_boringcrypto = [ | ||
// Linux boringcrypto | ||
{ name: 'Linux amd64 boringcrypto', os: 'linux', arch: 'amd64', experiment: 'boringcrypto' }, | ||
{ name: 'Linux arm64 boringcrypto', os: 'linux', arch: 'arm64', experiment: 'boringcrypto' }, | ||
]; | ||
|
||
local build_environments(targets, tuples, image) = std.flatMap(function(target) ( | ||
std.map(function(platform) ( | ||
pipelines.linux('Build %s (%s)' % [target, platform.name]) { | ||
local env = { | ||
GOOS: platform.os, | ||
GOARCH: platform.arch, | ||
GOARM: if 'arm' in platform then platform.arm else '', | ||
|
||
target: target, | ||
|
||
tags: go_tags[platform.os], | ||
} + (if 'experiment' in platform then { GOEXPERIMENT: platform.experiment } else {}), | ||
|
||
trigger: { | ||
event: ['pull_request'], | ||
}, | ||
|
||
steps: [{ | ||
name: 'Build', | ||
image: image, | ||
commands: [ | ||
'make generate-ui', | ||
(if 'GOEXPERIMENT' in env | ||
then 'GO_TAGS="%(tags)s" GOOS=%(GOOS)s GOARCH=%(GOARCH)s GOARM=%(GOARM)s GOEXPERIMENT=%(GOEXPERIMENT)s make %(target)s' % env | ||
else 'GO_TAGS="%(tags)s" GOOS=%(GOOS)s GOARCH=%(GOARCH)s GOARM=%(GOARM)s make %(target)s') % env, | ||
], | ||
}], | ||
} | ||
), tuples) | ||
), targets); | ||
|
||
build_environments(targets, os_arch_tuples, build_image.linux) + | ||
build_environments(targets_boringcrypto, os_arch_types_boringcrypto, build_image.boringcrypto) |
Oops, something went wrong.