Skip to content

Commit 6e9758c

Browse files
authored
Merge pull request #55 from embotech/p-updates-macos
Update CI
2 parents 63966fe + 669f024 commit 6e9758c

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ on:
88
tags:
99
- '*'
1010

11-
jobs:
12-
cleanup-runs:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: rokroskar/workflow-run-cleanup-action@master
16-
env:
17-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
18-
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
11+
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
12+
# Only cancels-in-progress on PRs (head_ref only defined in PR, fallback run_id always unique)
13+
concurrency:
14+
group: ${{ github.head_ref || github.run_id }}
15+
cancel-in-progress: true
1916

17+
jobs:
2018
build:
2119
runs-on: ${{ matrix.os }}
2220
defaults:
@@ -25,17 +23,17 @@ jobs:
2523
strategy:
2624
fail-fast: false
2725
matrix:
28-
os: [ ubuntu-20.04, macos-11, windows-2019 ]
29-
python-version: [ 3.7, 3.9, 3.8, "3.10", "3.11", "3.12" ]
26+
os: [ ubuntu-20.04, macos-12, windows-2019 ]
27+
python-version: [ 3.9, 3.8, "3.10", "3.11", "3.12" ]
3028

3129
env:
3230
PYTHON_VERSION: ${{ matrix.python-version }}
3331

3432
steps:
35-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v4
3634
with:
3735
submodules: recursive
38-
- uses: conda-incubator/setup-miniconda@v2
36+
- uses: conda-incubator/setup-miniconda@v3
3937
with:
4038
auto-update-conda: true
4139
python-version: ${{ matrix.python-version }}
@@ -70,13 +68,13 @@ jobs:
7068
strategy:
7169
fail-fast: false
7270
matrix:
73-
os: [ ubuntu-20.04, macos-11, windows-2019 ]
71+
os: [ ubuntu-20.04, macos-12, windows-2019 ]
7472
python-version: [ 3.7, 3.9, "3.10", "3.11", "3.12" ]
7573
include:
7674
- os: ubuntu-20.04
7775
python-version: 3.8
7876
single_action_config: "True"
79-
- os: macos-11
77+
- os: macos-12
8078
python-version: 3.8
8179
- os: windows-2019
8280
python-version: 3.8
@@ -91,10 +89,10 @@ jobs:
9189

9290
steps:
9391

94-
- uses: actions/checkout@v2
92+
- uses: actions/checkout@v4
9593
with:
9694
submodules: recursive
97-
- uses: actions/setup-python@v2
95+
- uses: actions/setup-python@v5
9896
with:
9997
python-version: ${{ matrix.python-version }}
10098
- name: Set Additional Envs
@@ -109,7 +107,7 @@ jobs:
109107
env:
110108
CIBW_BUILD: "cp3${{env.PYTHON_SUBVERSION}}-*"
111109
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux*"
112-
uses: joerick/cibuildwheel@v2.16.5
110+
uses: pypa/cibuildwheel@v2.19.1
113111

114112
- name: Build source
115113
if: ${{env.DEPLOY == 'True' && env.SINGLE_ACTION_CONFIG == 'True'}}
@@ -126,7 +124,7 @@ jobs:
126124
127125
- name: Upload artifacts to github
128126
if: ${{env.DEPLOY == 'True'}}
129-
uses: actions/upload-artifact@v1
127+
uses: actions/upload-artifact@v4
130128
with:
131-
name: wheels
132-
path: ./wheelhouse
129+
name: wheels-${{ matrix.os }}-${{ matrix.python-version }}
130+
path: ./wheelhouse

0 commit comments

Comments
 (0)