-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix SDK build errors, plus add it to the CI #43
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Build library | ||
|
||
on: { push: { branches-ignore: [future, main] } } | ||
|
||
concurrency: | ||
group: build-library-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-library: | ||
name: Build library | ||
runs-on: ubuntu-latest | ||
container: golang:1.21-alpine | ||
steps: | ||
- name: Install build dependencies | ||
run: | | ||
apk add --no-cache alpine-sdk git bash npm python3 py3-pip | ||
|
||
- name: Install yarn | ||
run: npm install --global yarn | ||
|
||
- name: Setup Dotnet | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6 | ||
|
||
- name: Check out repository code | ||
uses: actions/checkout@main | ||
with: { fetch-depth: 0 } | ||
|
||
- name: Treat repo as safe | ||
run: git config --global --add safe.directory /__w/pulumi-spacelift/pulumi-spacelift | ||
|
||
- name: Remove Pulumi directory | ||
run: rm -rf /github/home/.pulumi | ||
|
||
- name: Install pulumictl | ||
uses: jaxxstorm/action-install-gh-release@v1 | ||
with: | ||
repo: pulumi/pulumictl | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install pulumi | ||
uses: pulumi/actions@v4 | ||
|
||
- name: Tag version | ||
run: | | ||
CURRENTTAG=$(git describe --tags --abbrev=0) | ||
git tag $CURRENTTAG${{ github.run_number }} | ||
|
||
- name: Print version | ||
run: pulumictl get version | ||
|
||
- name: Build SDKs | ||
run: make build_sdks | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check if sdk is up to date | ||
run: git diff --exit-code ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,6 @@ build_nodejs:: install_plugins tfgen # build the node sdk | |
cd sdk/nodejs/ && \ | ||
yarn install && \ | ||
yarn run tsc && \ | ||
cp -R scripts/ bin && \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. they have dropped the scripts folder: pulumi/pulumi#13195 (comment) |
||
cp ../../README.md ../../LICENSE package.json yarn.lock ./bin/ && \ | ||
sed -i.bak -e "s/\$${VERSION}/$(VERSION)/g" ./bin/package.json | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** | ||
// *** Do not edit by hand unless you're certain you know what you are doing! *** | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.Immutable; | ||
using System.Threading.Tasks; | ||
using Pulumi.Serialization; | ||
|
||
namespace Pulumi.Spacelift | ||
{ | ||
[SpaceliftResourceType("spacelift:index/blueprint:Blueprint")] | ||
public partial class Blueprint : global::Pulumi.CustomResource | ||
{ | ||
/// <summary> | ||
/// Description of the blueprint | ||
/// </summary> | ||
[Output("description")] | ||
public Output<string?> Description { get; private set; } = null!; | ||
|
||
/// <summary> | ||
/// Labels of the blueprint | ||
/// </summary> | ||
[Output("labels")] | ||
public Output<ImmutableArray<string>> Labels { get; private set; } = null!; | ||
|
||
/// <summary> | ||
/// Name of the blueprint | ||
/// </summary> | ||
[Output("name")] | ||
public Output<string> Name { get; private set; } = null!; | ||
|
||
/// <summary> | ||
/// ID of the space the blueprint is in | ||
/// </summary> | ||
[Output("space")] | ||
public Output<string> Space { get; private set; } = null!; | ||
|
||
/// <summary> | ||
/// State of the blueprint. Value can be `DRAFT` or `PUBLISHED`. | ||
/// </summary> | ||
[Output("state")] | ||
public Output<string> State { get; private set; } = null!; | ||
|
||
/// <summary> | ||
/// Body of the blueprint. If `state` is set to `PUBLISHED`, this field is required. | ||
/// </summary> | ||
[Output("template")] | ||
public Output<string?> Template { get; private set; } = null!; | ||
|
||
|
||
/// <summary> | ||
/// Create a Blueprint resource with the given unique name, arguments, and options. | ||
/// </summary> | ||
/// | ||
/// <param name="name">The unique name of the resource</param> | ||
/// <param name="args">The arguments used to populate this resource's properties</param> | ||
/// <param name="options">A bag of options that control this resource's behavior</param> | ||
public Blueprint(string name, BlueprintArgs args, CustomResourceOptions? options = null) | ||
: base("spacelift:index/blueprint:Blueprint", name, args ?? new BlueprintArgs(), MakeResourceOptions(options, "")) | ||
{ | ||
} | ||
|
||
private Blueprint(string name, Input<string> id, BlueprintState? state = null, CustomResourceOptions? options = null) | ||
: base("spacelift:index/blueprint:Blueprint", name, state, MakeResourceOptions(options, id)) | ||
{ | ||
} | ||
|
||
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) | ||
{ | ||
var defaultOptions = new CustomResourceOptions | ||
{ | ||
Version = Utilities.Version, | ||
PluginDownloadURL = "https://downloads.spacelift.io/pulumi-plugins", | ||
}; | ||
var merged = CustomResourceOptions.Merge(defaultOptions, options); | ||
// Override the ID if one was specified for consistency with other language SDKs. | ||
merged.Id = id ?? merged.Id; | ||
return merged; | ||
} | ||
/// <summary> | ||
/// Get an existing Blueprint resource's state with the given name, ID, and optional extra | ||
/// properties used to qualify the lookup. | ||
/// </summary> | ||
/// | ||
/// <param name="name">The unique name of the resulting resource.</param> | ||
/// <param name="id">The unique provider ID of the resource to lookup.</param> | ||
/// <param name="state">Any extra arguments used during the lookup.</param> | ||
/// <param name="options">A bag of options that control this resource's behavior</param> | ||
public static Blueprint Get(string name, Input<string> id, BlueprintState? state = null, CustomResourceOptions? options = null) | ||
{ | ||
return new Blueprint(name, id, state, options); | ||
} | ||
} | ||
|
||
public sealed class BlueprintArgs : global::Pulumi.ResourceArgs | ||
{ | ||
/// <summary> | ||
/// Description of the blueprint | ||
/// </summary> | ||
[Input("description")] | ||
public Input<string>? Description { get; set; } | ||
|
||
[Input("labels")] | ||
private InputList<string>? _labels; | ||
|
||
/// <summary> | ||
/// Labels of the blueprint | ||
/// </summary> | ||
public InputList<string> Labels | ||
{ | ||
get => _labels ?? (_labels = new InputList<string>()); | ||
set => _labels = value; | ||
} | ||
|
||
/// <summary> | ||
/// Name of the blueprint | ||
/// </summary> | ||
[Input("name")] | ||
public Input<string>? Name { get; set; } | ||
|
||
/// <summary> | ||
/// ID of the space the blueprint is in | ||
/// </summary> | ||
[Input("space", required: true)] | ||
public Input<string> Space { get; set; } = null!; | ||
|
||
/// <summary> | ||
/// State of the blueprint. Value can be `DRAFT` or `PUBLISHED`. | ||
/// </summary> | ||
[Input("state", required: true)] | ||
public Input<string> State { get; set; } = null!; | ||
|
||
/// <summary> | ||
/// Body of the blueprint. If `state` is set to `PUBLISHED`, this field is required. | ||
/// </summary> | ||
[Input("template")] | ||
public Input<string>? Template { get; set; } | ||
|
||
public BlueprintArgs() | ||
{ | ||
} | ||
public static new BlueprintArgs Empty => new BlueprintArgs(); | ||
} | ||
|
||
public sealed class BlueprintState : global::Pulumi.ResourceArgs | ||
{ | ||
/// <summary> | ||
/// Description of the blueprint | ||
/// </summary> | ||
[Input("description")] | ||
public Input<string>? Description { get; set; } | ||
|
||
[Input("labels")] | ||
private InputList<string>? _labels; | ||
|
||
/// <summary> | ||
/// Labels of the blueprint | ||
/// </summary> | ||
public InputList<string> Labels | ||
{ | ||
get => _labels ?? (_labels = new InputList<string>()); | ||
set => _labels = value; | ||
} | ||
|
||
/// <summary> | ||
/// Name of the blueprint | ||
/// </summary> | ||
[Input("name")] | ||
public Input<string>? Name { get; set; } | ||
|
||
/// <summary> | ||
/// ID of the space the blueprint is in | ||
/// </summary> | ||
[Input("space")] | ||
public Input<string>? Space { get; set; } | ||
|
||
/// <summary> | ||
/// State of the blueprint. Value can be `DRAFT` or `PUBLISHED`. | ||
/// </summary> | ||
[Input("state")] | ||
public Input<string>? State { get; set; } | ||
|
||
/// <summary> | ||
/// Body of the blueprint. If `state` is set to `PUBLISHED`, this field is required. | ||
/// </summary> | ||
[Input("template")] | ||
public Input<string>? Template { get; set; } | ||
|
||
public BlueprintState() | ||
{ | ||
} | ||
public static new BlueprintState Empty => new BlueprintState(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dotnet is now part of the Ubuntu package manager and the build fails if you don't use that one. 😅