| 1 |
group "default" { |
| 2 |
targets = [ |
| 3 |
"python-39-linux", |
| 4 |
"python-310-linux", |
| 5 |
"python-311-linux", |
| 6 |
"python-312-linux", |
| 7 |
"python-313-linux", |
| 8 |
"python-314-linux" |
| 9 |
] |
| 10 |
} |
| 11 |
|
| 12 |
variable "DEBIAN_BASE" { |
| 13 |
# bullseye: manylinux2014 / manylinux_2_17 |
| 14 |
# bookworm: manylinux_2_34 |
| 15 |
# trixie: Unable to build on Debian trixie, https://github.com/jpy-consortium/jpy/issues/202 |
| 16 |
default = "bullseye" |
| 17 |
} |
| 18 |
|
| 19 |
variable "GITHUB_ACTIONS" { |
| 20 |
default = false |
| 21 |
} |
| 22 |
|
| 23 |
target "shared" { |
| 24 |
dockerfile = ".github/docker/Dockerfile" |
| 25 |
cache-from = [ |
| 26 |
GITHUB_ACTIONS ? "type=gha,scope=jpy-build" : "" |
| 27 |
] |
| 28 |
cache-to = [ |
| 29 |
GITHUB_ACTIONS ? "type=gha,mode=max,scope=jpy-build" : "" |
| 30 |
] |
| 31 |
} |
| 32 |
|
| 33 |
target "python-39-linux" { |
| 34 |
inherits = [ "shared" ] |
| 35 |
args = { |
| 36 |
PYTHON_TAG = "3.9-${DEBIAN_BASE}" |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
target "python-310-linux" { |
| 41 |
inherits = [ "shared" ] |
| 42 |
args = { |
| 43 |
PYTHON_TAG = "3.10-${DEBIAN_BASE}" |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
target "python-311-linux" { |
| 48 |
inherits = [ "shared" ] |
| 49 |
args = { |
| 50 |
PYTHON_TAG = "3.11-${DEBIAN_BASE}" |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
target "python-312-linux" { |
| 55 |
inherits = [ "shared" ] |
| 56 |
args = { |
| 57 |
PYTHON_TAG = "3.12-${DEBIAN_BASE}" |
| 58 |
} |
| 59 |
} |
| 60 |
|
| 61 |
target "python-313-linux" { |
| 62 |
inherits = [ "shared" ] |
| 63 |
args = { |
| 64 |
PYTHON_TAG = "3.13-${DEBIAN_BASE}" |
| 65 |
} |
| 66 |
} |
| 67 |
|
| 68 |
target "python-314-linux" { |
| 69 |
inherits = [ "shared" ] |
| 70 |
args = { |
| 71 |
DEBIAN_BASE = "bookworm" |
| 72 |
# For Python 3.14, only Debian Bookworm and above is supported |
| 73 |
PYTHON_TAG = "3.14-bookworm" |
| 74 |
} |
| 75 |
} |