Skip to content

Commit

Permalink
Simplify build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ringods committed May 30, 2024
1 parent 6ad1158 commit f9fcf07
Showing 1 changed file with 21 additions and 34 deletions.
55 changes: 21 additions & 34 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ env:
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
PYPI_USERNAME: "__token__"
TRAVIS_OS_NAME: linux
DOTNETVERSION: |
6.0.x
3.1.301
GOVERSION: 1.22.x
GRADLEVERSION: "7.6"
JAVAVERSION: "11"
NODEVERSION: 20.x
PYTHONVERSION: 3.11.8

jobs:
build_sdk:
name: build_sdk
Expand All @@ -31,7 +40,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand All @@ -41,16 +50,16 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{matrix.nodeversion}}
node-version: ${{ env.NODEVERSION }}
registry-url: https://registry.npmjs.org
- name: Setup DotNet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{matrix.dotnetversion}}
dotnet-version: ${{ env.DOTNETVERSION }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.pythonversion}}
python-version: ${{ env.PYTHONVERSION }}
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -79,19 +88,12 @@ jobs:
strategy:
fail-fast: true
matrix:
dotnetversion:
- 3.1.301
goversion:
- 1.21.x
language:
- nodejs
- python
- dotnet
- go
nodeversion:
- 18.x
pythonversion:
- "3.9"

prerequisites:
name: prerequisites
runs-on: ubuntu-latest
Expand All @@ -109,7 +111,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand Down Expand Up @@ -149,15 +151,7 @@ jobs:
path: ${{ github.workspace }}/bin/provider.tar.gz
strategy:
fail-fast: true
matrix:
dotnetversion:
- 3.1.301
goversion:
- 1.21.x
nodeversion:
- 18.x
pythonversion:
- "3.9"

test:
name: test
needs: build_sdk
Expand All @@ -176,7 +170,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{matrix.goversion}}
go-version: ${{ env.GOVERSION }}
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
Expand All @@ -186,16 +180,16 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{matrix.nodeversion}}
node-version: ${{ env.NODEVERSION }}
registry-url: https://registry.npmjs.org
- name: Setup DotNet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{matrix.dotnetversion}}
dotnet-version: ${{ env.DOTNETVERSION }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.pythonversion}}
python-version: ${{ env.PYTHONVERSION }}
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -227,19 +221,12 @@ jobs:
strategy:
fail-fast: true
matrix:
dotnetversion:
- 3.1.301
goversion:
- 1.21.x
language:
- nodejs
- python
- dotnet
- go
nodeversion:
- 18.x
pythonversion:
- "3.9"

permissions:
contents: write

Expand Down

0 comments on commit f9fcf07

Please sign in to comment.