2022-08-22 10:25:07 +00:00
|
|
|
[metadata]
|
2022-12-06 01:23:50 +00:00
|
|
|
name = "all-latest-{{ or $.Env.InteropTarget "-" }}-{{ or $.Env.GitReference "" }}"
|
2022-08-22 10:25:07 +00:00
|
|
|
|
|
|
|
[global]
|
|
|
|
plan = "libp2p/ping"
|
|
|
|
case = "ping"
|
|
|
|
runner = "local:docker"
|
|
|
|
concurrent_builds = 1
|
|
|
|
|
|
|
|
[global.build_config]
|
|
|
|
enable_go_build_cache = false # see https://github.com/testground/testground/issues/1361
|
|
|
|
# disable testground's goproxy which hangs on github runners.
|
|
|
|
go_proxy_mode = "remote"
|
|
|
|
go_proxy_url = "https://proxy.golang.org"
|
|
|
|
|
|
|
|
{{ with (load_resource "./go.toml") }}
|
2022-09-06 15:34:25 +00:00
|
|
|
{{ with (index .groups 0) }}
|
2022-08-22 10:25:07 +00:00
|
|
|
[[groups]]
|
2022-09-06 15:34:25 +00:00
|
|
|
id = "go-latest-{{ .Id }}"
|
2022-08-22 10:25:07 +00:00
|
|
|
instances = { count = 1 }
|
|
|
|
builder = "docker:go"
|
|
|
|
|
|
|
|
[groups.build]
|
|
|
|
selectors = ['{{ .Selector }}']
|
|
|
|
|
|
|
|
[groups.build_config]
|
|
|
|
path = "./go/"
|
|
|
|
build_base_image = 'golang:{{ .GoVersion }}-buster'
|
|
|
|
modfile = "{{ .Modfile }}"
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if eq $.Env.InteropTarget "go" }}
|
|
|
|
{{ if $.Env.GitReference }}
|
|
|
|
{{ with .custom }}
|
|
|
|
[[groups]]
|
2022-09-06 15:34:25 +00:00
|
|
|
id = "go-custom-{{ $.Env.GitReference }}"
|
2022-08-22 10:25:07 +00:00
|
|
|
instances = { count = 1 }
|
|
|
|
builder = "docker:go"
|
|
|
|
|
|
|
|
[groups.build]
|
|
|
|
selectors = ['{{ .Selector }}']
|
|
|
|
|
|
|
|
[[groups.build.dependencies]]
|
|
|
|
module = "github.com/libp2p/go-libp2p"
|
|
|
|
version = "{{ $.Env.GitReference }}"
|
|
|
|
{{ if $.Env.GitTarget }}
|
|
|
|
target = "{{ $.Env.GitTarget }}"
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
[groups.build_config]
|
|
|
|
path = "./go/"
|
|
|
|
build_base_image = 'golang:{{ .GoVersion }}-buster'
|
|
|
|
modfile = "{{ .Modfile }}"
|
|
|
|
|
|
|
|
[groups.build_config.dockerfile_extensions]
|
|
|
|
# deal with dependency changes in master until we create the new vx.y.z instance
|
|
|
|
pre_build = """
|
|
|
|
RUN cd ${PLAN_DIR} && \
|
|
|
|
go mod download github.com/libp2p/go-libp2p && \
|
|
|
|
go mod tidy -compat={{ .GoVersion }}
|
|
|
|
"""
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ with (load_resource "./rust.toml") }}
|
2022-09-06 15:34:25 +00:00
|
|
|
{{ with (index .groups 0) }}
|
2022-08-22 10:25:07 +00:00
|
|
|
[[groups]]
|
2022-09-06 15:34:25 +00:00
|
|
|
id = "rust-latest-{{ .Id }}"
|
2022-08-22 10:25:07 +00:00
|
|
|
instances = { count = 1 }
|
|
|
|
builder = "docker:generic"
|
|
|
|
|
|
|
|
[groups.build_config]
|
|
|
|
path = "./rust/"
|
2022-10-21 14:50:18 +00:00
|
|
|
|
2022-08-22 10:25:07 +00:00
|
|
|
[groups.build_config.build_args]
|
2022-11-18 11:49:30 +00:00
|
|
|
BINARY_NAME = '{{ .BinaryName }}'
|
2022-08-22 10:25:07 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if eq $.Env.InteropTarget "rust" }}
|
|
|
|
{{ if $.Env.GitReference }}
|
|
|
|
{{ with .custom }}
|
|
|
|
[[groups]]
|
2022-09-06 15:34:25 +00:00
|
|
|
id = "rust-custom-{{ $.Env.GitReference }}"
|
2022-08-22 10:25:07 +00:00
|
|
|
instances = { count = 1 }
|
|
|
|
builder = "docker:generic"
|
|
|
|
|
|
|
|
[groups.build_config]
|
|
|
|
path = "./rust/"
|
|
|
|
|
|
|
|
[groups.build_config.build_args]
|
2022-11-18 11:49:30 +00:00
|
|
|
BINARY_NAME = '{{ .BinaryName }}'
|
|
|
|
GIT_TARGET = '{{ $.Env.GitTarget }}'
|
2022-11-22 14:20:49 +00:00
|
|
|
GIT_REF = '{{ $.Env.GitReference }}'
|
2022-08-22 10:25:07 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-10-21 14:50:18 +00:00
|
|
|
{{ end }}
|
2022-12-06 01:23:50 +00:00
|
|
|
|
|
|
|
{{ with (load_resource "./nim.toml") }}
|
|
|
|
{{ with (index .groups 0) }}
|
|
|
|
[[groups]]
|
|
|
|
id = "nim-latest-{{ .Id }}"
|
|
|
|
instances = { count = 1 }
|
|
|
|
builder = "docker:generic"
|
|
|
|
|
|
|
|
[groups.build_config]
|
|
|
|
path = "./nim/"
|
|
|
|
[groups.build_config.build_args]
|
|
|
|
Libp2pVersion = '{{ .Id }}'
|
|
|
|
NimVersion = '{{ .NimVersion }}'
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if eq $.Env.InteropTarget "nim" }}
|
|
|
|
{{ if $.Env.GitReference }}
|
|
|
|
{{ with .custom }}
|
|
|
|
[[groups]]
|
|
|
|
id = "nim-custom-{{ $.Env.GitReference }}"
|
|
|
|
instances = { count = 1 }
|
|
|
|
builder = "docker:generic"
|
|
|
|
|
|
|
|
[groups.build_config]
|
|
|
|
path = "./nim/"
|
|
|
|
[groups.build_config.build_args]
|
|
|
|
Libp2pVersion = '#{{ $.Env.GitReference }}'
|
|
|
|
NimVersion = '{{ .NimVersion }}'
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|