2023-05-07 08:58:03 +03:00
|
|
|
distributable:
|
2024-02-01 22:58:29 +03:00
|
|
|
url: git+https://github.com/pulumi/pulumi.git
|
|
|
|
ref: ${{version.tag}}
|
2023-05-07 08:58:03 +03:00
|
|
|
|
|
|
|
versions:
|
|
|
|
github: pulumi/pulumi
|
|
|
|
strip: /v/
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/pulumi
|
2024-02-01 22:58:29 +03:00
|
|
|
- bin/pulumi-analyzer-policy
|
|
|
|
- bin/pulumi-analyzer-policy-python
|
|
|
|
- bin/pulumi-language-dotnet
|
|
|
|
- bin/pulumi-language-go
|
|
|
|
- bin/pulumi-language-java
|
|
|
|
- bin/pulumi-language-nodejs
|
|
|
|
- bin/pulumi-language-python
|
|
|
|
- bin/pulumi-language-python-exec
|
|
|
|
- bin/pulumi-language-yaml
|
|
|
|
- bin/pulumi-resource-pulumi-nodejs
|
|
|
|
- bin/pulumi-resource-pulumi-python
|
|
|
|
- bin/pulumi-watch
|
2023-05-07 08:58:03 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
curl.se/ca-certs: '*'
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
2024-02-01 22:58:29 +03:00
|
|
|
go.dev: ^1.20
|
|
|
|
classic.yarnpkg.com: '*'
|
|
|
|
nodejs.org: '*'
|
2023-10-07 00:18:26 +03:00
|
|
|
script:
|
|
|
|
- run: go mod download
|
|
|
|
working-directory: sdk
|
|
|
|
|
|
|
|
- run: go mod download
|
|
|
|
working-directory: pkg
|
2023-05-07 08:58:03 +03:00
|
|
|
|
2024-06-22 08:31:52 +03:00
|
|
|
# needs this fix to prevent segfaults
|
|
|
|
- run: sed -i 's/-ldflags "/-ldflags "-buildmode=pie /' */Makefile
|
|
|
|
working-directory: sdk
|
|
|
|
|
2023-10-07 00:18:26 +03:00
|
|
|
- run: |
|
2024-02-01 22:58:29 +03:00
|
|
|
for DIR in go nodejs python; do
|
|
|
|
make -C $DIR install_plugin PULUMI_BIN={{prefix}}/bin
|
|
|
|
done
|
|
|
|
working-directory: sdk
|
|
|
|
|
|
|
|
# The next steps are modified from scripts/brew.sh
|
|
|
|
- run: go build
|
|
|
|
-ldflags "$GO_LDFLAGS"
|
|
|
|
-o {{prefix}}/bin/pulumi ./cmd/pulumi
|
|
|
|
working-directory: pkg
|
2023-05-07 08:58:03 +03:00
|
|
|
|
2024-02-01 22:58:29 +03:00
|
|
|
- ./scripts/prep-for-goreleaser.sh "local"
|
|
|
|
- cp -a bin/$(go env GOOS)*/* {{prefix}}/bin/
|
2023-05-07 08:58:03 +03:00
|
|
|
|
2024-02-01 22:58:29 +03:00
|
|
|
# - mkdir -p {{prefix}}/bin
|
|
|
|
# - mv build/bin/pulumi* {{prefix}}/bin/
|
2023-05-07 08:58:03 +03:00
|
|
|
|
|
|
|
# Install shell completions
|
|
|
|
# TODO: Doesn't work for zsh. Should it be left up to user?
|
|
|
|
# {{prefix}}/bin/pulumi gen-completion $SHELL
|
|
|
|
env:
|
2024-02-01 22:58:29 +03:00
|
|
|
GOPATH: '$PWD/build'
|
|
|
|
GO_LDFLAGS:
|
|
|
|
- -X github.com/pulumi/pulumi/pkg/v3/version.Version={{version}}
|
|
|
|
linux:
|
|
|
|
GO_LDFLAGS:
|
|
|
|
- -buildmode=pie
|
2023-05-07 08:58:03 +03:00
|
|
|
|
|
|
|
test:
|
2024-02-01 22:58:29 +03:00
|
|
|
script:
|
|
|
|
- pulumi new aws-typescript --generate-only --force -y
|
|
|
|
- test -e Pulumi.yaml
|
2023-05-07 08:58:03 +03:00
|
|
|
env:
|
|
|
|
PULUMI_ACCESS_TOKEN: local://
|
2024-02-01 22:58:29 +03:00
|
|
|
PULUMI_TEMPLATE_PATH: '$PWD/templates'
|