From 6efcc19fc784aeb033ea0cec90ccd451de73caa9 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Tue, 9 Jul 2024 00:50:19 -0700 Subject: [PATCH] Update GitHub Actions workflows. (#472) This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 307ab721493b446349b12aa2a6bfe07c052b0ad2. --- .github/workflows/build_provider.yml | 5 ++++- .github/workflows/run-acceptance-tests.yml | 1 + Makefile | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_provider.yml b/.github/workflows/build_provider.yml index 164173e..4d31935 100644 --- a/.github/workflows/build_provider.yml +++ b/.github/workflows/build_provider.yml @@ -38,7 +38,10 @@ jobs: - name: Download schema-embed.json uses: actions/download-artifact@v4 with: - name: schema-embed.json + # Use a pattern to avoid failing if the artifact doesn't exist + pattern: schema-embed.* + # Avoid creating directories for each artifact + merge-multiple: true path: provider/cmd/pulumi-resource-tailscale/schema-embed.json - name: Prepare for build # This installs plugins and prepares upstream diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index d1bc9b8..f7d6211 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -81,6 +81,7 @@ jobs: github.event.pull_request.head.repo.full_name == github.repository needs: - test + - build_provider - license_check - lint runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 80fbff4..0430390 100644 --- a/Makefile +++ b/Makefile @@ -212,7 +212,7 @@ bin/linux-arm64/$(PROVIDER): TARGET := linux-arm64 bin/darwin-amd64/$(PROVIDER): TARGET := darwin-amd64 bin/darwin-arm64/$(PROVIDER): TARGET := darwin-arm64 bin/windows-amd64/$(PROVIDER).exe: TARGET := windows-amd64 -bin/%/$(PROVIDER) bin/%/$(PROVIDER).exe: provider/cmd/$(PROVIDER)/schema-embed.json +bin/%/$(PROVIDER) bin/%/$(PROVIDER).exe: @# check the TARGET is set test $(TARGET) cd provider && \