Fix build error #49
Workflow file for this run
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
name: Build provider | |
on: { push: { branches-ignore: [future, main] } } | |
concurrency: | |
group: build-provider-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-provider: | |
name: Build provider | |
runs-on: ubuntu-latest | |
container: golang:1.21-alpine | |
steps: | |
- name: Install build dependencies | |
run: | | |
apk add --no-cache alpine-sdk git bash npm | |
- name: Install yarn | |
run: npm install --global yarn | |
- name: Check out repository code | |
uses: actions/checkout@main | |
- 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: git tag -d `git tag | grep -E '.'` && git tag v0.0.0 | |
- name: Print version | |
run: pulumictl get version | |
- name: Build provider | |
run: make provider | |
env: | |
PROVIDER_OS: ${{ matrix.provider_os }} | |
- name: Build SDKs | |
run: make build_sdks | |
- name: Check if sdk is up to date | |
run: git diff --exit-code ./ |