Skip to content

Commit 1f12e0e

Browse files
authored
[internal] Update GitHub Actions workflow files (#348)
1 parent 9f23b7b commit 1f12e0e

File tree

19 files changed

+288
-181
lines changed

19 files changed

+288
-181
lines changed

.ci-mgmt.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ provider: scm
22
major-version: 0
33
makeTemplate: bridged
44
plugins:
5-
- name: std
6-
version: "1.6.2"
7-
- name: terraform
8-
version: "1.0.16"
9-
kind: converter
5+
- name: std
6+
version: "1.6.2"
7+
- name: terraform
8+
version: "1.0.16"
9+
kind: converter
1010
team: ecosystem
1111
providerDefaultBranch: main
1212
pulumiConvert: 1
1313
registryDocs: true
1414
integrationTestProvider: true
1515
esc:
16-
enabled: true
17-
environment: imports/github-secrets # No repo-specific secrets.
16+
enabled: true
17+
environment: imports/github-secrets # No repo-specific secrets.

.config/mise.lock

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
[[tools.dotnet]]
2+
version = "8.0.414"
3+
backend = "asdf:dotnet"
4+
5+
[[tools."github:pulumi/pulumictl"]]
6+
version = "0.0.50"
7+
backend = "github:pulumi/pulumictl"
8+
9+
[tools."github:pulumi/pulumictl".platforms.linux-x64]
10+
checksum = "blake3:c128dd74993f779c613296fe7cd21c20cbd323f24e59cb76e007620660b60348"
11+
size = 27744219
12+
url = "https://github.com/pulumi/pulumictl/releases/download/v0.0.50/pulumictl-v0.0.50-linux-amd64.tar.gz"
13+
14+
[[tools."github:pulumi/schema-tools"]]
15+
version = "0.6.0"
16+
backend = "github:pulumi/schema-tools"
17+
18+
[tools."github:pulumi/schema-tools".platforms.linux-x64]
19+
checksum = "blake3:82dfe616fee18b4258f6e3d2dc3c4e9f14afd43a0a4cc33eff2d2a04088d6ca3"
20+
size = 14282746
21+
url = "https://github.com/pulumi/schema-tools/releases/download/v0.6.0/schema-tools-v0.6.0-linux-amd64.tar.gz"
22+
23+
[[tools.go]]
24+
version = "1.24.6"
25+
backend = "core:go"
26+
27+
[tools.go.platforms.linux-x64]
28+
checksum = "sha256:bbca37cc395c974ffa4893ee35819ad23ebb27426df87af92e93a9ec66ef8712"
29+
size = 78583176
30+
url = "https://dl.google.com/go/go1.24.6.linux-amd64.tar.gz"
31+
32+
[[tools.gradle]]
33+
version = "7.6.6"
34+
backend = "aqua:gradle/gradle"
35+
36+
[[tools.java]]
37+
version = "corretto-11.0.28.6.1"
38+
backend = "core:java"
39+
40+
[[tools.node]]
41+
version = "20.19.5"
42+
backend = "core:node"
43+
44+
[[tools.pulumi]]
45+
version = "3.190.0"
46+
backend = "aqua:pulumi/pulumi"
47+
48+
[tools.pulumi.platforms.linux-x64]
49+
checksum = "sha512:1847aaa3c3c0202cff9cbd3f547c5965abb2b2f83199b47c36c23121d7c860662b6d817226709fc3eadd24551a30ab656699d2eb992d2085bb90db6c195c2379"
50+
size = 92837374
51+
url = "https://github.com/pulumi/pulumi/releases/download/v3.190.0/pulumi-v3.190.0-linux-x64.tar.gz"
52+
53+
[[tools.python]]
54+
version = "3.11.8"
55+
backend = "core:python"

.config/mise.test.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
2+
3+
# Overrides tool versions for test workflows
4+
5+
[tools]
6+
# always use pulumi latest for tests
7+
pulumi = "latest"

.config/mise.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
2+
# You can create your own root-level mise.toml file to override/augment this. See https://mise.jdx.dev/configuration.html
3+
4+
[env]
5+
_.source = "{{config_root}}/scripts/get-versions.sh"
6+
7+
[tools]
8+
9+
# Runtimes
10+
# TODO: we may not need `get_env` once https://github.com/jdx/mise/discussions/6339 is fixed
11+
go = "{{ get_env(name='GO_VERSION', default='latest') }}"
12+
node = '20'
13+
python = '3.11.8'
14+
dotnet = '8.0'
15+
# Corretto version used as Java SE/OpenJDK version no longer offered
16+
java = 'corretto-11'
17+
18+
# Executable tools
19+
pulumi = "{{ get_env(name='PULUMI_VERSION', default='latest') }}"
20+
"github:pulumi/pulumictl" = 'latest'
21+
"github:pulumi/schema-tools" = "latest"
22+
gradle = '7.6'
23+
24+
[settings]
25+
experimental = true # Required for Go binaries (e.g. pulumictl).
26+
lockfile = true

.github/actions/setup-tools/action.yml

Lines changed: 0 additions & 91 deletions
This file was deleted.

.github/workflows/build_provider.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,13 @@ jobs:
5656
- uses: MOZGIII/install-ldid-action@v1
5757
with:
5858
tag: v2.1.5-procursus2
59-
- name: Setup tools
60-
uses: ./.github/actions/setup-tools
59+
- name: Setup mise
60+
uses: jdx/mise-action@v3
6161
with:
62-
tools: pulumictl, go
63-
# use per-platform/arch caches instead since we are doing cross-builds
64-
cache-go: false
62+
github_token: ${{ secrets.GITHUB_TOKEN }}
63+
cache_key: "mise-{{platform}}-{{file_hash}}"
64+
# only saving the cache in the prerequisites job
65+
cache_save: false
6566
# Based on https://github.com/actions/cache/blob/main/examples.md#go---modules
6667
- name: Get GOCACHE
6768
id: gocache

.github/workflows/build_sdk.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,23 @@ jobs:
5454
path: |
5555
.pulumi/examples-cache
5656
key: ${{ runner.os }}-${{ hashFiles('provider/go.sum') }}
57-
- name: Setup tools
58-
uses: ./.github/actions/setup-tools
57+
- name: Setup mise
58+
uses: jdx/mise-action@v3
5959
with:
60-
tools: pulumictl, pulumicli, ${{ matrix.language }}
60+
github_token: ${{ secrets.GITHUB_TOKEN }}
61+
cache_key: "mise-{{platform}}-{{file_hash}}"
62+
# only saving the cache in the prerequisites job
63+
cache_save: false
64+
- name: Setup Go Cache
65+
if: matrix.language == 'go' || contains(matrix.language, 'go')
66+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
67+
with:
68+
cache-dependency-path: |
69+
provider/*.sum
70+
upstream/*.sum
71+
sdk/go/*.sum
72+
sdk/*.sum
73+
*.sum
6174
- name: Prepare local workspace
6275
run: make prepare_local_workspace
6376
env:

.github/workflows/copilot-setup-steps.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ jobs:
3232
with:
3333
persist-credentials: false
3434

35-
- name: Setup tools
36-
uses: ./.github/actions/setup-tools
35+
- name: Setup mise
36+
uses: jdx/mise-action@v3
3737
with:
38-
tools: pulumictl, pulumicli, nodejs, python, dotnet, go, java
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
cache_key: "mise-{{platform}}-{{file_hash}}"
40+
# only saving the cache in the prerequisites job
41+
cache_save: false
3942

4043
- name: Prepare local workspace
4144
# this runs install_plugins and upstream

.github/workflows/license.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ jobs:
2121
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222
with:
2323
persist-credentials: false
24-
- name: Setup tools
25-
uses: ./.github/actions/setup-tools
24+
- name: Setup mise
25+
uses: jdx/mise-action@v3
2626
with:
27-
tools: go
28-
cache-go: false
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
cache_key: "mise-{{platform}}-{{file_hash}}"
29+
# only saving the cache in the prerequisites job
30+
cache_save: false
2931
- run: make prepare_local_workspace
3032
continue-on-error: true
3133
env:

.github/workflows/main-post-build.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,22 @@ jobs:
4848
aws-access-key-id: ${{ steps.esc-secrets.outputs.AWS_CORP_S3_UPLOAD_ACCESS_KEY_ID }}
4949
aws-region: us-west-2
5050
aws-secret-access-key: ${{ steps.esc-secrets.outputs.AWS_CORP_S3_UPLOAD_SECRET_ACCESS_KEY }}
51-
- name: Setup tools
52-
uses: ./.github/actions/setup-tools
51+
- name: Setup mise
52+
uses: jdx/mise-action@v3
5353
with:
54-
tools: pulumictl, pulumicli, go, schema-tools
54+
github_token: ${{ secrets.GITHUB_TOKEN }}
55+
cache_key: "mise-{{platform}}-{{file_hash}}"
56+
# only saving the cache in the prerequisites job
57+
cache_save: false
58+
- name: Setup Go Cache
59+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
60+
with:
61+
cache-dependency-path: |
62+
provider/*.sum
63+
upstream/*.sum
64+
sdk/go/*.sum
65+
sdk/*.sum
66+
*.sum
5567
- name: Echo Coverage Output Dir
5668
run: 'echo "Coverage output directory: ${{ env.COVERAGE_OUTPUT_DIR }}"'
5769
- name: Generate Coverage Data

0 commit comments

Comments
 (0)