Skip to content

Commit 6e16bf1

Browse files
committed
Add build action
1 parent 97b3ae6 commit 6e16bf1

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
name: Multiplatform Build
3+
4+
on:
5+
push:
6+
branches:
7+
- "*"
8+
9+
schedule:
10+
- cron: 0 12 * * 6
11+
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: ${{ github.action_path }}-${{ github.ref }}-multiplatform-build
16+
cancel-in-progress: false
17+
18+
jobs:
19+
multiplatform-build:
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, windows-2019, windows-2022]
24+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
25+
26+
env:
27+
OS: ${{ matrix.os }}
28+
PYTHON: ${{ matrix.python-version }}
29+
30+
runs-on: ${{ matrix.os }}
31+
32+
steps:
33+
- name: Checkout code
34+
uses: actions/[email protected]
35+
36+
- name: Install LLVM and Clang
37+
uses: KyleMayes/[email protected]
38+
with:
39+
version: "18"
40+
arch: "x64"
41+
42+
- name: Set up Python ${{ matrix.python-version }}
43+
uses: actions/[email protected]
44+
with:
45+
python-version: ${{ matrix.python-version }}
46+
architecture: "x64"
47+
48+
- name: Install Poetry
49+
run: pip install poetry==1.8.3
50+
51+
- name: Install Python dependencies
52+
run: poetry install --no-cache --sync
53+
54+
- name: Build distribution package
55+
run: poetry build
56+
57+
- uses: actions/upload-artifact@v4
58+
with:
59+
name: build-${{ matrix.os }}-${{ matrix.python-version }}
60+
path: ./dist/*

0 commit comments

Comments
 (0)