|
37 | 37 |
|
38 | 38 | - name: Checkout repository |
39 | 39 | uses: actions/checkout@v4 |
| 40 | + with: |
| 41 | + fetch-depth: 0 |
40 | 42 |
|
41 | 43 | - name: Check for release build and tag |
42 | 44 | if: startsWith(github.ref, 'refs/tags/') |
|
52 | 54 | jf c add --url=$JF_URL --access-token=$JF_ACCESS_TOKEN --interactive=false |
53 | 55 |
|
54 | 56 | # download |
55 | | - - name: Download files from Artifactory |
| 57 | + - name: Download control files from Artifactory |
56 | 58 | id: get_sdks |
57 | 59 | run: | |
58 | 60 | set +x |
@@ -93,11 +95,44 @@ jobs: |
93 | 95 | name: macOS_Pylon |
94 | 96 | path: macos |
95 | 97 |
|
| 98 | + consume: |
| 99 | + needs: prepare |
| 100 | + strategy: |
| 101 | + fail-fast: false |
| 102 | + matrix: |
| 103 | + os: [ ubuntu-24.04, ubuntu-24.04-arm, macos-14, windows-latest ] |
| 104 | + arch: [ x64, arm64 ] |
| 105 | + exclude: |
| 106 | + # Exclude ARM64 architecture for windows-latest |
| 107 | + - os: windows-latest |
| 108 | + arch: arm64 |
| 109 | + # Exclude ARM64 architecture for macos-14 |
| 110 | + - os: macos-14 |
| 111 | + arch: arm64 |
| 112 | + runs-on: ${{ matrix.os }} |
| 113 | + steps: |
| 114 | + - uses: actions/checkout@v4 |
| 115 | + with: |
| 116 | + fetch-depth: 0 |
96 | 117 |
|
| 118 | + - name: Install Python |
| 119 | + uses: actions/setup-python@v5 |
| 120 | + with: |
| 121 | + python-version: "3.10" |
97 | 122 |
|
| 123 | + - name: Got OS Name |
| 124 | + id: osname |
| 125 | + run: | |
| 126 | + import re |
| 127 | + os = "${{ matrix.os }}" |
| 128 | + os_name = re.sub(r'-.*', '', os) |
| 129 | + os_name = os_name.replace('ubuntu', 'linux').replace('windows', 'windows').replace('macos', 'macos') |
| 130 | + print(f"::set-output name=value::{os_name}") |
| 131 | + print(f"OS Name: {os_name}") |
| 132 | + shell: python |
98 | 133 |
|
99 | 134 | build-linux: |
100 | | - needs: prepare |
| 135 | + needs: consume |
101 | 136 | strategy: |
102 | 137 | fail-fast: false |
103 | 138 | matrix: |
@@ -162,7 +197,7 @@ jobs: |
162 | 197 |
|
163 | 198 |
|
164 | 199 | build-windows: |
165 | | - needs: prepare |
| 200 | + needs: consume |
166 | 201 | runs-on: windows-latest |
167 | 202 | strategy: |
168 | 203 | fail-fast: false |
@@ -214,7 +249,7 @@ jobs: |
214 | 249 |
|
215 | 250 |
|
216 | 251 | build-macos: |
217 | | - needs: prepare |
| 252 | + needs: consume |
218 | 253 | runs-on: macos-latest |
219 | 254 | strategy: |
220 | 255 | fail-fast: false |
@@ -269,6 +304,7 @@ jobs: |
269 | 304 | if: always() |
270 | 305 | needs: [ |
271 | 306 | prepare, |
| 307 | + consume, |
272 | 308 | build-linux, |
273 | 309 | build-macos, |
274 | 310 | build-windows |
|
0 commit comments