forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.49 KB
/
Copy pathcustom_build_praktika.yml
File metadata and controls
57 lines (50 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# generated by praktika
name: Build Praktika for PyPI
concurrency:
group: ${{ github.workflow }}
on:
workflow_dispatch:
workflow_call:
secrets:
TWINE_PASSWORD:
required: true
env:
PYTHONUNBUFFERED: 1
CHECKOUT_REF: ""
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# Allow updating GH commit statuses and PR comments to post an actual job reports link
permissions: write-all
jobs:
build_praktika:
runs-on: [self-hosted, arm-large]
needs: []
name: "Build Praktika"
outputs:
data: ${{ steps.run.outputs.DATA }}
pipeline_status: ${{ steps.run.outputs.pipeline_status || 'undefined' }}
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
ref: ${{ env.CHECKOUT_REF }}
- name: Prepare env script
run: |
rm -rf ./ci/tmp
mkdir -p ./ci/tmp
cat > ./ci/tmp/praktika_setup_env.sh << 'ENV_SETUP_SCRIPT_EOF'
export PYTHONPATH=./ci:.:
cat > ./ci/tmp/workflow_inputs.json << 'EOF'
${{ toJson(inputs) }}
EOF
cat > ./ci/tmp/workflow_job.json << 'EOF'
${{ toJson(job) }}
EOF
cat > ./ci/tmp/workflow_status.json << 'EOF'
${{ toJson(needs) }}
EOF
ENV_SETUP_SCRIPT_EOF
- name: Run
id: run
run: |
. ./ci/tmp/praktika_setup_env.sh
PYTHONUNBUFFERED=1 python3 -m praktika run 'Build Praktika' --workflow "Build Praktika for PyPI" --ci --timestamp