-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 935 Bytes
/
build.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
name: Build workflow-testing
on:
push:
branches:
- "**"
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
get-archi:
strategy:
matrix:
python-version: ["3.9", "3.12"]
os: ["macos-latest", "macos-12", "windows-latest", "ubuntu-latest"]
exclude:
- os: macos-12
arch: arm64
- os: macos-latest
arch: x86_64
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- run: |
echo ${{ matrix }}
uname -a
if [ "${{ startsWith(matrix.os, 'windows') || (startsWith(matrix.os, 'macos') && matrix.python-version == '3.12') }}" == true ]; then
echo "install toulbar2"
pip install "${wheelfile}[toulbar]"
python -c "import pytoulbar2"
fi