Skip to content

Commit e981e09

Browse files
committed
Convert to github actions
Signed-off-by: Bryan Hunt <bryan.hunt@microchip.com>
1 parent 5f69624 commit e981e09

15 files changed

Lines changed: 170 additions & 99 deletions
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Additional context**
21+
Add any other context about the problem here.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Describe the solution you'd like**
8+
A clear and concise description of what you want to happen.
9+
10+
**Describe alternatives you've considered**
11+
A clear and concise description of any alternative solutions or features you've considered.
12+
13+
**Additional context**
14+
Add any other context or screenshots about the feature request here.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Product Support
3+
about: Questions on product or library configuration and usage
4+
5+
---
6+
7+
For product support please submit a request through the [mySupport portal](https://microchipsupport.force.com/s/) where Microchip's global team of FAEs can work on your use case and questions.
8+
9+
For details on the mySupport Portal or how to use it please see the [instructions for using the mySupport portal](https://microchipsupport.force.com/s/article/How-to-submit-a-case)

.github/workflows/build.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: Build and deploy wheels to pypi
2+
3+
on:
4+
push:
5+
tags:
6+
- 20*
7+
8+
jobs:
9+
build_wheels:
10+
name: Build wheels on ${{ matrix.os }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [windows-latest, macos-latest]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- uses: actions/setup-python@v2
20+
name: Install Python
21+
with:
22+
python-version: '3.7'
23+
24+
- name: Describe Tag & Branch Name
25+
id: build_names
26+
shell: bash
27+
run: |
28+
echo ::set-output name=TAG_NAME::${GITHUB_REF#refs/tags/}
29+
30+
- name: Install cibuildwheel
31+
run: |
32+
python -m pip install cibuildwheel
33+
34+
- name: Install Visual C++ for Python 2.7
35+
if: runner.os == 'Windows'
36+
run: |
37+
choco install vcpython27 -f -y
38+
39+
- name: Build wheels
40+
shell: bash
41+
run: |
42+
echo $TAG_NAME
43+
cd python
44+
echo $TAG_NAME >VERSION
45+
cp -r ../lib .
46+
cp -r ../third_party .
47+
mkdir app
48+
cp -r ../app/tng app
49+
python -m cibuildwheel --output-dir wheelhouse
50+
env:
51+
CIBW_BUILD_VERBOSITY: 3
52+
TAG_NAME: ${{ steps.build_names.outputs.TAG_NAME }}
53+
54+
- uses: actions/upload-artifact@v2
55+
with:
56+
path: python/wheelhouse/*.whl
57+
58+
build_sdist:
59+
name: Build source distribution
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v2
63+
64+
- uses: actions/setup-python@v2
65+
name: Install Python
66+
with:
67+
python-version: '3.7'
68+
69+
- name: Describe Tag & Branch Name
70+
id: build_names
71+
run: |
72+
echo ::set-output name=TAG_NAME::${GITHUB_REF#refs/tags/}
73+
74+
- name: Build sdist
75+
run: |
76+
echo $TAG_NAME
77+
cd python
78+
echo $TAG_NAME >VERSION
79+
cp -r ../lib .
80+
cp -r ../third_party .
81+
mkdir app
82+
cp -r ../app/tng app
83+
python setup.py sdist
84+
env:
85+
TAG_NAME: ${{ steps.build_names.outputs.TAG_NAME }}
86+
87+
- uses: actions/upload-artifact@v2
88+
with:
89+
path: python/dist/*.tar.gz
90+
91+
upload_pypi:
92+
needs: [build_wheels, build_sdist]
93+
runs-on: ubuntu-latest
94+
95+
steps:
96+
- uses: actions/download-artifact@v2
97+
with:
98+
name: artifact
99+
path: dist
100+
101+
- uses: pypa/gh-action-pypi-publish@master
102+
with:
103+
user: ${{ secrets.pypi_username }}
104+
password: ${{ secrets.pypi_password }}

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

app/tng/tnglora_cert_def_2_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extern "C" {
3838
* @{
3939
*/
4040

41-
SHARED_LIB_IMPORT const atcacert_def_t g_tnglora_cert_def_2_device;
41+
ATCA_DLL const atcacert_def_t g_tnglora_cert_def_2_device;
4242

4343
/** @} */
4444

appveyor.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

lib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ endif()
266266

267267
if(ATCA_BUILD_SHARED_LIBS)
268268
add_definitions(-DATCA_BUILD_SHARED_LIBS)
269+
set(CRYPTOAUTH_SRC ${CRYPTOAUTH_SRC} atca_utils_sizes.c)
269270
endif(ATCA_BUILD_SHARED_LIBS)
270271

271272
add_library(cryptoauth ${CRYPTOAUTH_SRC} ${ATCACERT_DEF_SRC})

lib/atca_compiler.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
#define ATCA_UINT16_HOST_TO_LE(x) __builtin_bswap16(x)
3838
#define ATCA_UINT16_LE_TO_HOST(x) __builtin_bswap16(x)
3939
#define ATCA_UINT32_HOST_TO_LE(x) __builtin_bswap32(x)
40+
#define ATCA_UINT16_HOST_TO_BE(x) (x)
41+
#define ATCA_UINT16_BE_TO_HOST(x) (x)
4042
#define ATCA_UINT32_HOST_TO_BE(x) (x)
4143
#define ATCA_UINT32_BE_TO_HOST(x) (x)
4244
#define ATCA_UINT64_HOST_TO_BE(x) (x)
@@ -45,6 +47,8 @@
4547
#define ATCA_UINT16_HOST_TO_LE(x) (x)
4648
#define ATCA_UINT16_LE_TO_HOST(x) (x)
4749
#define ATCA_UINT32_HOST_TO_LE(x) (x)
50+
#define ATCA_UINT16_HOST_TO_BE(x) __builtin_bswap16(x)
51+
#define ATCA_UINT16_BE_TO_HOST(x) __builtin_bswap16(x)
4852
#define ATCA_UINT32_HOST_TO_BE(x) __builtin_bswap32(x)
4953
#define ATCA_UINT32_BE_TO_HOST(x) __builtin_bswap32(x)
5054
#define ATCA_UINT64_HOST_TO_BE(x) __builtin_bswap64(x)

0 commit comments

Comments
 (0)