-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (40 loc) · 1.19 KB
/
Copy pathbuild.yml
File metadata and controls
48 lines (40 loc) · 1.19 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
name: SVF-Python Build (Auto-install Python 3.10)
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build via build.sh on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, macos-14]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install system dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
git curl build-essential software-properties-common \
cmake g++ nodejs doxygen graphviz lcov libncurses5-dev libtinfo6 libzstd-dev \
libffi-dev zlib1g-dev
- name: Install system dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install git curl cmake node doxygen graphviz
- name: Run build script
run: |
chmod +x ./build.sh
./build.sh
- name: Check for .whl file
run: |
if ls dist/*.whl 1> /dev/null 2>&1; then
echo "✅ Wheel build succeeded."
else
echo "❌ Wheel file not found. Build failed."
exit 1
fi