Skip to content

Commit 9fc0f6e

Browse files
only download required artifact
1 parent 64ea655 commit 9fc0f6e

4 files changed

Lines changed: 25 additions & 17 deletions

File tree

.github/workflows/build-golang.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ on:
1010
jobs:
1111
build-and-test-golang:
1212
name: Build, Test
13-
runs-on: ${{ matrix.os }}
13+
runs-on: ${{ matrix.os-artifact[0] }}
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [ ubuntu-latest, windows-latest, macos-latest ]
17+
os-artifact: [ [ubuntu-latest, linux], [windows-latest, windows], [macos-latest, macos] ]
1818
steps:
1919
- uses: actions/checkout@v2
2020
- name: Download workflow artifact
2121
uses: dawidd6/[email protected]
2222
with:
2323
workflow: "build-libs.yml"
24-
path: ./libs
24+
path: ./libs/${{ matrix.os-artifact[1] }}
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
name: ${{ matrix.os-artifact[1] }}
2527
- name: Set up Go
2628
uses: actions/setup-go@v2
2729
with:
@@ -50,7 +52,7 @@ jobs:
5052
if: always()
5153
uses: actions/upload-artifact@v2
5254
with:
53-
name: Golang Unit Test Results (${{ matrix.os }})
55+
name: Golang Unit Test Results (${{ matrix.os-artifact[0] }})
5456
path: 'go/okapi/test_output*.xml'
5557

5658
publish-test-results-golang:

.github/workflows/build-java.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010
jobs:
1111
build-and-test-java:
1212
name: Build, Test
13-
runs-on: ${{ matrix.os }}
13+
runs-on: ${{ matrix.os-artifact[0] }}
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [ ubuntu-latest, windows-latest, macos-latest ]
17+
os-artifact: [ [ubuntu-latest, linux], [windows-latest, windows], [macos-latest, macos] ]
1818

1919
steps:
2020
- uses: actions/checkout@v2
@@ -31,7 +31,9 @@ jobs:
3131
uses: dawidd6/[email protected]
3232
with:
3333
workflow: "build-libs.yml"
34-
path: ./libs
34+
path: ./libs/${{ matrix.os-artifact[1] }}
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
name: ${{ matrix.os-artifact[1] }}
3537
- name: Build with Gradle
3638
run: |
3739
python ../devops/build_sdks.py
@@ -46,7 +48,7 @@ jobs:
4648
if: always()
4749
uses: actions/upload-artifact@v2
4850
with:
49-
name: Java Unit Test Results (${{ matrix.os }})
51+
name: Java Unit Test Results (${{ matrix.os-artifact[0] }})
5052
path: 'java/build/test-results/test/TEST-*.xml'
5153

5254
publish-test-results-java:

.github/workflows/build-python.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,21 @@ on:
1919
jobs:
2020
build-and-test-python:
2121
name: Test Python code
22-
runs-on: ${{ matrix.os }}
22+
runs-on: ${{ matrix.os-artifact[0] }}
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
os: [ ubuntu-latest, windows-latest, macos-latest ]
26+
os-artifact: [ [ubuntu-latest, linux], [windows-latest, windows], [macos-latest, macos] ]
2727
python-version: [3.7, 3.8, 3.9, '3.10' ]
2828
steps:
2929
- uses: actions/checkout@v2
3030
- name: Download workflow artifact
3131
uses: dawidd6/[email protected]
3232
with:
3333
workflow: "build-libs.yml"
34-
path: ./libs
34+
path: ./libs/${{ matrix.os-artifact[1] }}
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
name: ${{ matrix.os-artifact[1] }}
3537
- name: Set up Python ${{ matrix.python-version }}
3638
uses: actions/setup-python@v2
3739
with:
@@ -51,7 +53,7 @@ jobs:
5153
if: always()
5254
uses: actions/upload-artifact@v2
5355
with:
54-
name: Python ${{ matrix.python-version }} Unit Test Results (${{ matrix.os }})
56+
name: Python ${{ matrix.python-version }} Unit Test Results (${{ matrix.os-artifact[0] }})
5557
path: 'python/test_output*.xml'
5658

5759
publish-test-results-python:

.github/workflows/build-ruby.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ on:
1010
jobs:
1111
build-and-test-ruby:
1212
name: Build, Test
13-
runs-on: ${{ matrix.os }}
13+
runs-on: ${{ matrix.os-artifact[0] }}
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [ ubuntu-latest, windows-latest, macos-10.15 ]
17+
os-artifact: [ [ubuntu-latest, linux], [windows-latest, windows], [macos-latest, macos] ]
1818
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
19-
ruby-version: [ '3.0' ]
19+
ruby-version: [ '2.6', '2.7', '3.0' ]
2020

2121
steps:
2222
- uses: actions/checkout@v2
@@ -32,7 +32,9 @@ jobs:
3232
uses: dawidd6/[email protected]
3333
with:
3434
workflow: "build-libs.yml"
35-
path: ./libs
35+
path: ./libs/${{ matrix.os-artifact[1] }}
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
name: ${{ matrix.os-artifact[1] }}
3638
- name: Build and run tests
3739
run: |
3840
gem install bundler
@@ -54,7 +56,7 @@ jobs:
5456
if: always()
5557
uses: actions/upload-artifact@v2
5658
with:
57-
name: Ruby ${{ matrix.ruby-version }} Unit Test Results (${{ matrix.os }})
59+
name: Ruby ${{ matrix.ruby-version }} Unit Test Results (${{ matrix.os-artifact[0] }})
5860
path: 'ruby/test/reports/TEST-*.xml'
5961

6062
publish-test-results-ruby:

0 commit comments

Comments
 (0)