Skip to content

Commit a891060

Browse files
t
1 parent 9ea5cc2 commit a891060

1 file changed

Lines changed: 40 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737

3838
- name: Checkout repository
3939
uses: actions/checkout@v4
40+
with:
41+
fetch-depth: 0
4042

4143
- name: Check for release build and tag
4244
if: startsWith(github.ref, 'refs/tags/')
@@ -52,7 +54,7 @@ jobs:
5254
jf c add --url=$JF_URL --access-token=$JF_ACCESS_TOKEN --interactive=false
5355
5456
# download
55-
- name: Download files from Artifactory
57+
- name: Download control files from Artifactory
5658
id: get_sdks
5759
run: |
5860
set +x
@@ -93,11 +95,44 @@ jobs:
9395
name: macOS_Pylon
9496
path: macos
9597

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
96117

118+
- name: Install Python
119+
uses: actions/setup-python@v5
120+
with:
121+
python-version: "3.10"
97122

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
98133

99134
build-linux:
100-
needs: prepare
135+
needs: consume
101136
strategy:
102137
fail-fast: false
103138
matrix:
@@ -162,7 +197,7 @@ jobs:
162197
163198
164199
build-windows:
165-
needs: prepare
200+
needs: consume
166201
runs-on: windows-latest
167202
strategy:
168203
fail-fast: false
@@ -214,7 +249,7 @@ jobs:
214249

215250

216251
build-macos:
217-
needs: prepare
252+
needs: consume
218253
runs-on: macos-latest
219254
strategy:
220255
fail-fast: false
@@ -269,6 +304,7 @@ jobs:
269304
if: always()
270305
needs: [
271306
prepare,
307+
consume,
272308
build-linux,
273309
build-macos,
274310
build-windows

0 commit comments

Comments
 (0)