-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (53 loc) · 1.67 KB
/
build-bootstrap-python.yml
File metadata and controls
63 lines (53 loc) · 1.67 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
58
59
60
61
62
63
name: Build Bootstrap Python
on:
workflow_dispatch:
inputs:
tag:
description: "Release tag for the bootstrap-python assets (e.g. bootstrap-v1)"
required: true
default: "bootstrap-v1"
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: win-x64
os: windows-latest
- platform: mac-arm64
os: macos-latest
- platform: linux-x64
os: ubuntu-latest
runs-on: ${{ matrix.os }}
name: Build ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Build bootstrap Python
run: python scripts/build-bootstrap-python.py --platform ${{ matrix.platform }} --output bootstrap-python
- name: Package archive
shell: bash
run: |
cd bootstrap-python
tar -czf ../bootstrap-python-${{ matrix.platform }}.tar.gz ${{ matrix.platform }}
ls -lh ../bootstrap-python-${{ matrix.platform }}.tar.gz
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: bootstrap-python-${{ matrix.platform }}
path: bootstrap-python-${{ matrix.platform }}.tar.gz
- name: Upload to release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.tag }}
files: bootstrap-python-${{ matrix.platform }}.tar.gz
fail_on_unmatched_files: false
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}