Skip to content

Commit bcd6715

Browse files
committed
fix: update arch tags for action build
1 parent 2ba3024 commit bcd6715

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/cmake-multiple-platform.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
run: |
7171
mkdir -p build
7272
cd build
73-
cmake -DPY3LM_GITHUB_ACTIONS=1 -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DPY3LM_VERSION="${{ needs.setup.outputs.tag_name }}" -DPY3LM_PACKAGE="py3lm-build-${{ needs.setup.outputs.tag_name }}-windows-${{ env.GITHUB_SHA_SHORT }}" ..
73+
cmake -DPY3LM_GITHUB_ACTIONS=1 -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DPY3LM_VERSION="${{ needs.setup.outputs.tag_name }}" -DPY3LM_PACKAGE="py3lm-build-${{ needs.setup.outputs.tag_name }}-windows_x64-${{ env.GITHUB_SHA_SHORT }}" ..
7474
cmake --build . --target plugify-module-python3.12 --config ${{ env.BUILD_TYPE }} -- /m
7575
7676
- name: Clean build directory
@@ -94,7 +94,7 @@ jobs:
9494
9595
- uses: actions/upload-artifact@v4
9696
with:
97-
name: py3lm-build-windows-${{ env.GITHUB_SHA_SHORT }}
97+
name: py3lm-build-windows_x64-${{ env.GITHUB_SHA_SHORT }}
9898
path: build/output/
9999

100100
build_linux:
@@ -121,7 +121,7 @@ jobs:
121121
run: |
122122
mkdir -p build
123123
cd build
124-
cmake -DPY3LM_GITHUB_ACTIONS=1 -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DPY3LM_VERSION="${{ needs.setup.outputs.tag_name }}" -DPY3LM_PACKAGE="py3lm-build-${{ needs.setup.outputs.tag_name }}-linux-${{ env.GITHUB_SHA_SHORT }}" ..
124+
cmake -DPY3LM_GITHUB_ACTIONS=1 -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DPY3LM_VERSION="${{ needs.setup.outputs.tag_name }}" -DPY3LM_PACKAGE="py3lm-build-${{ needs.setup.outputs.tag_name }}-steamrt_x64-${{ env.GITHUB_SHA_SHORT }}" ..
125125
cmake --build . --target plugify-module-python3.12 --config ${{ env.BUILD_TYPE }} -- -j
126126
127127
- name: Clean build directory
@@ -139,7 +139,7 @@ jobs:
139139
140140
- uses: actions/upload-artifact@v4
141141
with:
142-
name: py3lm-build-linux-${{ env.GITHUB_SHA_SHORT }}
142+
name: py3lm-build-steamrt_x64-${{ env.GITHUB_SHA_SHORT }}
143143
path: build/output/
144144

145145
publish:
@@ -159,32 +159,32 @@ jobs:
159159

160160
- uses: actions/download-artifact@v4
161161
with:
162-
name: py3lm-build-windows-${{ env.GITHUB_SHA_SHORT }}
162+
name: py3lm-build-windows_x64-${{ env.GITHUB_SHA_SHORT }}
163163
path: build/windows
164164

165165
- uses: actions/download-artifact@v4
166166
with:
167-
name: py3lm-build-linux-${{ env.GITHUB_SHA_SHORT }}
167+
name: py3lm-build-steamrt_x64-${{ env.GITHUB_SHA_SHORT }}
168168
path: build/linux
169169

170170
- name: Zip Builds
171171
run: |
172-
(cd build/linux && zip -qq -r ../../py3lm-build-${{ needs.setup.outputs.tag_name }}-linux-${{ env.GITHUB_SHA_SHORT }}.zip *)
173-
(cd build/windows && zip -qq -r ../../py3lm-build-${{ needs.setup.outputs.tag_name }}-windows-${{ env.GITHUB_SHA_SHORT }}.zip *)
172+
(cd build/linux && zip -qq -r ../../py3lm-build-${{ needs.setup.outputs.tag_name }}-steamrt_x64-${{ env.GITHUB_SHA_SHORT }}.zip *)
173+
(cd build/windows && zip -qq -r ../../py3lm-build-${{ needs.setup.outputs.tag_name }}-windows_x64-${{ env.GITHUB_SHA_SHORT }}.zip *)
174174
175175
- id: linux
176-
run: echo "checksum=$(sha256sum py3lm-build-${{ needs.setup.outputs.tag_name }}-linux-${{ env.GITHUB_SHA_SHORT }}.zip | cut -d' ' -f1)" >> $GITHUB_OUTPUT
176+
run: echo "checksum=$(sha256sum py3lm-build-${{ needs.setup.outputs.tag_name }}-steamrt_x64-${{ env.GITHUB_SHA_SHORT }}.zip | cut -d' ' -f1)" >> $GITHUB_OUTPUT
177177
- id: windows
178-
run: echo "checksum=$(sha256sum py3lm-build-${{ needs.setup.outputs.tag_name }}-windows-${{ env.GITHUB_SHA_SHORT }}.zip | cut -d' ' -f1)" >> $GITHUB_OUTPUT
178+
run: echo "checksum=$(sha256sum py3lm-build-${{ needs.setup.outputs.tag_name }}-windows_x64-${{ env.GITHUB_SHA_SHORT }}.zip | cut -d' ' -f1)" >> $GITHUB_OUTPUT
179179

180180
- name: Release
181181
id: release
182182
uses: softprops/action-gh-release@v1
183183
with:
184184
tag_name: ${{ needs.setup.outputs.tag_name }}
185185
files: |
186-
py3lm-build-${{ needs.setup.outputs.tag_name }}-windows-${{ env.GITHUB_SHA_SHORT }}.zip
187-
py3lm-build-${{ needs.setup.outputs.tag_name }}-linux-${{ env.GITHUB_SHA_SHORT }}.zip
186+
py3lm-build-${{ needs.setup.outputs.tag_name }}-windows_x64-${{ env.GITHUB_SHA_SHORT }}.zip
187+
py3lm-build-${{ needs.setup.outputs.tag_name }}-steamrt_x64-${{ env.GITHUB_SHA_SHORT }}.zip
188188
189189
repository:
190190
permissions:
@@ -270,8 +270,8 @@ jobs:
270270
return data
271271
272272
data = load_json_from_url(json_url)
273-
data = append_new_version(data, version_tag, checksum_windows, package_name, "windows-x64")
274-
data = append_new_version(data, version_tag, checksum_linux, package_name, "steamrt-x64")
273+
data = append_new_version(data, version_tag, checksum_windows, package_name, "windows_x64")
274+
data = append_new_version(data, version_tag, checksum_linux, package_name, "steamrt_x64")
275275
save_json('build/repo/plugify-module-python3.12.json', data)
276276
277277
- name: Upload artifact

0 commit comments

Comments
 (0)