-
Notifications
You must be signed in to change notification settings - Fork 161
47 lines (38 loc) · 1.25 KB
/
build-wheels.yml
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
name: Build WhiteboxTools
on:
workflow_dispatch:
# push:
# branches:
# - master # Adjust to match your primary branch name
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macOS-latest, ubuntu-20.04, ]
os: [ubuntu-22.04] #, windows-latest, macos-12, macOS-latest]
python-version: ['3.11']
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install musl on linux
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt install musl-tools
- name: Run build script linux
if: startsWith(matrix.os, 'ubuntu')
run: python build.py do_clean exclude_runner zip
- name: Run build script non-linux
if: startsWith(matrix.os, 'ubuntu') != true
run: python build.py do_clean zip
- name: Upload WBT
uses: actions/upload-artifact@v4
with:
name: wbt-${{ matrix.os }}
path: zip_file/*.zip