|
99 | 99 | - { platform: linux, arch: amd64, runner: ubuntu-latest } |
100 | 100 | - { platform: macos, arch: arm64, runner: macos-latest } |
101 | 101 | - { platform: windows, arch: amd64, runner: windows-latest } |
102 | | -<% if environment %> |
| 102 | +<% if environment and "test" in lang_config.build.environment_contexts or "build:test" in lang_config.build.environment_contexts %> |
103 | 103 | environment: <{environment}> |
104 | 104 | <% endif %> |
105 | 105 | permissions: |
@@ -279,7 +279,7 @@ jobs: |
279 | 279 | include: |
280 | 280 | # I think we only need to test one platform, but we can change that later |
281 | 281 | - { platform: linux, arch: amd64, runner: ubuntu-latest } |
282 | | -<% if environment %> |
| 282 | +<% if environment and "validate" in lang_config.build.environment_contexts or "build:test" in lang_config.build.environment_contexts %> |
283 | 283 | environment: <{environment}> |
284 | 284 | <% endif %> |
285 | 285 | permissions: |
@@ -468,7 +468,7 @@ jobs: |
468 | 468 | <% endif %> |
469 | 469 | - { platform: macos, arch: arm64, runner: macos-latest } |
470 | 470 | - { platform: windows, arch: amd64, runner: windows-latest } |
471 | | -<% if environment %> |
| 471 | +<% if environment and "build:release" in lang_config.build.environment_contexts %> |
472 | 472 | environment: <{environment}> |
473 | 473 | <% endif %> |
474 | 474 | permissions: |
@@ -669,7 +669,7 @@ jobs: |
669 | 669 | - { platform: linux, arch: amd64, runner: ubuntu-latest } |
670 | 670 | - { platform: macos, arch: arm64, runner: macos-latest } |
671 | 671 | - { platform: windows, arch: amd64, runner: windows-latest } |
672 | | -<% if environment %> |
| 672 | +<% if environment and "build:test" in lang_config.build.environment_contexts %> |
673 | 673 | environment: <{environment}> |
674 | 674 | <% endif %> |
675 | 675 | steps: |
|
0 commit comments