Skip to content

Commit e95134f

Browse files
committed
Allow reusable-ubuntu to install and upload results
1 parent 119827c commit e95134f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/reusable-ubuntu.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ on:
3232
required: false
3333
type: string
3434
default: ''
35+
upload-install:
36+
description: Install Python and upload the result artifact
37+
required: false
38+
type: boolean
39+
default: false
3540

3641
permissions:
3742
contents: read
@@ -130,3 +135,13 @@ jobs:
130135
run: xvfb-run make ci EXTRATESTOPTS="${TEST_OPTS}"
131136
env:
132137
TEST_OPTS: ${{ inputs.test-opts }}
138+
- name: Install Python
139+
if: ${{ inputs.upload-install }}
140+
working-directory: ${{ env.CPYTHON_BUILDDIR }}
141+
run: make install DESTDIR=build/install
142+
- name: Upload Installed Python
143+
if: ${{ inputs.upload-install }}
144+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
145+
with:
146+
name: install-tree-${{ runner.arch }}-${{ case(inputs.free-threading, 't', '')}}${{ case(inputs.debug, 'd', '') }}
147+
path: ${{ env.CPYTHON_BUILDDIR }}/build/install

0 commit comments

Comments
 (0)