Skip to content

Commit 75f0fe0

Browse files
committed
update actions and cibuildwheel
1 parent 9caa658 commit 75f0fe0

File tree

4 files changed

+49
-11
lines changed

4 files changed

+49
-11
lines changed

.github/workflows/build_publish.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,32 @@ jobs:
1313
os: [ubuntu-latest, windows-latest, macOS-latest]
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717

18-
- uses: actions/setup-python@v2
18+
- uses: actions/setup-python@v3
1919
name: Install Python
2020

2121
- name: Install cibuildwheel
22-
run: python -m pip install cibuildwheel==2.5.0
22+
run: python -m pip install cibuildwheel==2.15.0
23+
24+
- name: Get submodules
25+
run: git submodule update --init --recursive
2326

2427
- name: Build wheels for Windows
2528
if: startsWith(matrix.os, 'windows')
2629
run: |
27-
git submodule update --init --recursive
2830
python -m cibuildwheel --output-dir wheels
2931
env:
3032
CIBW_SKIP: "cp27-* pp27-*" # skip Python 2.7 wheels
3133

3234
- name: Build wheels for mac and manylinux
3335
if: "!startsWith(matrix.os, 'windows')"
3436
run: |
35-
git submodule update --init --recursive
3637
python -m cibuildwheel --output-dir wheels
3738
env:
3839
CIBW_ARCHS_MACOS: "auto x86_64 universal2 arm64"
3940

40-
- uses: actions/upload-artifact@v2
41+
- uses: actions/upload-artifact@v3
4142
name: Upload wheels
4243
with:
4344
name: wheels
@@ -50,15 +51,15 @@ jobs:
5051

5152
steps:
5253
- name: Set up Python
53-
uses: actions/setup-python@v2
54+
uses: actions/setup-python@v3
5455
with:
5556
python-version: '3.x'
5657
- name: Install twine
5758
run: |
5859
python -m pip install --upgrade pip
5960
pip install twine
6061
- name: Download Artifacts
61-
uses: actions/download-artifact@v2
62+
uses: actions/download-artifact@v3
6263
with:
6364
name: wheels
6465
path: ./wheels

.github/workflows/build_test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: Build wheels on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, windows-latest, macOS-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- uses: actions/setup-python@v3
17+
name: Install Python
18+
19+
- name: Install cibuildwheel
20+
run: python -m pip install cibuildwheel==2.15.0
21+
22+
- name: Get submodules
23+
run: git submodule update --init --recursive
24+
25+
- name: Build wheels for Windows
26+
if: startsWith(matrix.os, 'windows')
27+
run: |
28+
python -m cibuildwheel --output-dir wheels
29+
env:
30+
CIBW_SKIP: "cp27-* pp27-*" # skip Python 2.7 wheels
31+
32+
- name: Build wheels for mac and manylinux
33+
if: "!startsWith(matrix.os, 'windows')"
34+
run: |
35+
python -m cibuildwheel --output-dir wheels
36+
env:
37+
CIBW_ARCHS_MACOS: "auto x86_64 universal2 arm64"

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
- name: Set up Python
13-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@v3
1414
with:
1515
python-version: '3.x'
1616
- name: Install dependencies

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def run(self):
312312

313313
setup(
314314
name='yara-python-dex',
315-
version='1.0.5',
315+
version='1.0.6',
316316
description='Python interface for YARA',
317317
long_description=readme,
318318
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)