Prepare initial release #2
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 | |
on: | |
pull_request: | |
paths-ignore: | |
- docs | |
- .devcontainer | |
- examples | |
jobs: | |
build_sdk: | |
name: build_sdk | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
dotnetversion: | |
- 6.0.x | |
goversion: | |
- 1.21.x | |
nodeversion: | |
- 16.x | |
pythonversion: | |
- "3.9" | |
# javaversion: | |
# - "11" | |
language: | |
- nodejs | |
- python | |
- dotnet | |
- go | |
# - java | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Unshallow clone for tags | |
run: git fetch --prune --unshallow --tags | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{matrix.goversion}} | |
- name: Install pulumictl | |
uses: jaxxstorm/action-install-gh-release@v1.10.0 | |
with: | |
repo: pulumi/pulumictl | |
- name: Install pulumi | |
uses: pulumi/actions@v4 | |
- if: ${{ matrix.language == 'nodejs'}} | |
name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{matrix.nodeversion}} | |
registry-url: https://registry.npmjs.org | |
- if: ${{ matrix.language == 'dotnet'}} | |
name: Setup DotNet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{matrix.dotnetversion}} | |
- if: ${{ matrix.language == 'python'}} | |
name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{matrix.pythonversion}} | |
- if: ${{ matrix.language == 'java'}} | |
name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
cache: gradle | |
distribution: temurin | |
java-version: ${{matrix.javaversion}} | |
- name: Build SDK | |
run: make build_${{ matrix.language }} | |
- name: Check worktree clean | |
run: | | |
git update-index -q --refresh | |
if ! git diff-files --quiet; then | |
>&2 echo "error: working tree is not clean, aborting!" | |
git status | |
git diff | |
exit 1 | |
fi |