forked from neuronsimulator/nrn
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.54 KB
/
Copy pathwheels-ci.yml
File metadata and controls
48 lines (43 loc) · 1.54 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: Build NEURON Python wheels for CI
concurrency:
# Don't cancel on master, creating a PR when a push workflow is already going will cancel the push workflow in favour of the PR workflow
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_id || github.event.number && github.head_ref || github.ref_name }}
cancel-in-progress: true
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-test:
name: Build and test NEURON Python wheels
uses: ./.github/workflows/wheels-template.yml
with:
platform: ${{ matrix.os }}
python_version: ${{ matrix.python_version }}
commit: ${{ github.sha }}
strategy:
matrix:
os: ['macos-15-intel', 'ubuntu-24.04']
python_version: ['3.10', '3.14']
merge:
name: Merge artifacts and post artifacts URL
runs-on: ubuntu-latest
needs: [build-test]
steps:
- name: Merge Artifacts
id: merge-artifacts
uses: actions/upload-artifact/merge@v4
with:
delete-merged: true
name: wheels
pattern: wheels-*
- name: Create comment with URL to artifact
if: github.event.pull_request && github.event.pull_request.head.repo.full_name == github.repository
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
✔️ ${{ github.event.pull_request.head.sha }} -> [artifacts URL](${{ steps.merge-artifacts.outputs.artifact-url }})