Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action to build wheels for windows and mac #5

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on: [push, pull_request]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macOS-11]

steps:
- uses: actions/checkout@v3

# Used to host cibuildwheel
- uses: actions/setup-python@v3

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.10.2

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
env:
CIBW_BUILD: cp39-* cp310-*
CIBW_SKIP: cp*-win32

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
Empty file added main
Empty file.
2 changes: 1 addition & 1 deletion pyreaddbc/_readdbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ static void (*_cffi_call_python_org)(struct _cffi_externpy_s *, char *);

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
//#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdint.h>
Expand Down
2 changes: 1 addition & 1 deletion pyreaddbc/c-src/dbc2dbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
//#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdint.h>
Expand Down