Skip to content

Commit eb38a84

Browse files
committed
add win/macos ci
1 parent 050d4bd commit eb38a84

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

.github/workflows/tests.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,29 @@ on:
1010
build_mode:
1111
description: "Build profile to use with maturin develop"
1212
required: true
13-
default: release
13+
default: debug
1414
type: choice
1515
options:
16-
- release
1716
- debug
17+
- release
1818

1919
permissions:
2020
contents: read
2121

2222
jobs:
2323
test-supported-pythons:
24-
name: supported-pythons
25-
runs-on: ubuntu-latest
24+
name: ${{ matrix.os_name }}
25+
runs-on: ${{ matrix.runner }}
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
include:
30+
- os_name: linux
31+
runner: ubuntu-latest
32+
- os_name: windows
33+
runner: windows-latest
34+
- os_name: macos
35+
runner: macos-latest
2636

2737
steps:
2838
- name: Check out repository
@@ -49,10 +59,11 @@ jobs:
4959
- name: Run tests across supported Python versions
5060
shell: bash
5161
env:
52-
RSLOOP_PYTHON_VERSIONS: ${{ inputs.python_versions }}
62+
RSLOOP_PYTHON_VERSIONS: ${{ github.event.inputs.python_versions || '' }}
63+
RSLOOP_BUILD_MODE: ${{ github.event.inputs.build_mode || 'debug' }}
5364
run: |
5465
args=()
55-
if [[ "${{ inputs.build_mode }}" == "debug" ]]; then
66+
if [[ "$RSLOOP_BUILD_MODE" == "debug" ]]; then
5667
args+=(--debug)
5768
fi
5869
scripts/test-supported-pythons.sh "${args[@]}"

0 commit comments

Comments
 (0)