Commit Graph

517 Commits

Author SHA1 Message Date
MicroDev 39b4f26932
update ci 2023-01-21 11:01:09 +05:30
MicroDev f36c862cab
refactor stuff in ci 2023-01-18 12:12:54 +05:30
MicroDev 3b2fe1510e
cache idf and its submodules 2023-01-16 20:42:38 +05:30
MicroDev bad80ef703
fix idf submodules init 2023-01-16 18:03:29 +05:30
MicroDev 1e2d0a4be8
gettext is pre-installed on mac 2023-01-16 17:13:19 +05:30
MicroDev fd3faa4a05
only install `awscli` when required 2023-01-16 17:03:39 +05:30
MicroDev 03804e6ec1
refactor and alphabetically arrange matrix jobs 2023-01-14 20:42:58 +05:30
MicroDev 434c2355a0
multiple ci enhancements
- selectively fetch submodule tags
- conditionally build mpy-cross
- remove frozen from submodule cache
2023-01-14 17:10:40 +05:30
MicroDev 6bc0274aec
cache common submodules and share cp version 2023-01-14 10:58:04 +05:30
MicroDev ad4357d152
use pr head ref and not the merge ref 2023-01-11 19:22:07 +05:30
MicroDev 722a313cc1
set base and head commit only when the event is a pr 2023-01-07 21:13:07 +05:30
MicroDev f0e7e3115a
refactor how base and head commit are set
- avoid `github.event.after` as it isn't available during initial CI run of the PR
2023-01-07 21:03:16 +05:30
MicroDev 09adb24284
slightly refactor ci 2023-01-07 18:41:16 +05:30
MicroDev 8096c94e1b
build docs only when `//|` matches 2023-01-07 18:17:48 +05:30
MicroDev 03d4d63ab5
simplify fetching changed files 2023-01-07 17:48:39 +05:30
MicroDev a97d8e97ad
update `tj-actions/changed-files` to `v34` 2023-01-05 12:00:46 +05:30
MicroDev b01bf1e16c
revert fetch-depth setting in ci 2022-12-12 02:10:01 +05:30
MicroDev 53e1416484
downgrade and lock `tj-actions/changed-files` at `v34.5.1` 2022-12-12 02:09:08 +05:30
MicroDev 628865b235
change fetch-depth setting in ci 2022-12-11 20:49:00 +05:30
MicroDev fa14307c7d
update `tj-actions/changed-files` to `v34.5.3` 2022-12-11 20:19:43 +05:30
Dan Halbert 845b68c351
Merge pull request #7204 from jepler/build-python3x
return to using python 3.x for builds
2022-11-30 15:18:29 -05:00
MicroDev 7ea563e661
fix json parse issue 2022-11-19 23:29:05 +05:30
MicroDev e4f5ca11f9
compare against pr head commit instead of merge ref 2022-11-19 10:51:22 +05:30
Scott Shawcroft c525322a29
Merge pull request #7132 from MicroDev1/ci
CI: Schedule PR jobs based on commit specific changes
2022-11-17 10:37:07 -08:00
Jeff Epler b8f5def985
return to using python 3.x for builds 2022-11-13 09:26:49 -06:00
Jeff Epler 91da267a87
Pin python version 3.10 for builds
Python 3.11 started to roll out to github actions, and .. it doesn't work.
This MAY affect just the espressif build, but I'm pinning it back at 3.10
for all builds.

Typical failure, during "Run $IDF_PATH/tools/idf_tools.py --non-interactive install required"
shows a lot of failures building gevent:
```
...
Collecting gevent<2.0,>=1.2.2
  Downloading gevent-1.5.0.tar.gz (5.3 MB)
...
  Building wheel for gevent (pyproject.toml): finished with status 'error'
...
      src/gevent/_greenlet_primitives.c:216:12: fatal error: longintrepr.h: No such file or directory
        216 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
```

I notice that gevent is pinned at <2.0 while the current version is 22.10.2!
This is a dependency of gdbgui==0.13.2.0, which is installed by esp-idf
pinned at that version.
2022-11-02 19:23:52 -05:00
microDev 30f07fbf22
schedule pr jobs based on commit specific changes 2022-10-26 23:19:13 +05:30
microDev e5139e2040
update to newer actions 2022-10-11 10:45:22 +05:30
Jeff Epler 62aa7dfcdb
Revert "pin python version for doc building"
This reverts commit 645cb6c2a5.
2022-09-27 08:20:44 -05:00
Jeff Epler 645cb6c2a5
pin python version for doc building 2022-09-25 12:22:50 -05:00
Jeff Epler 97bd322ff8
Use current ubuntu for pre-commit
This means that the OS version of uncrustify can be used, rather than
the pybricks one.
2022-09-06 21:16:56 -05:00
Dan Halbert cfa7de7592 fix name for macOS mpy-cross universal build 2022-07-28 18:14:32 -04:00
Dan Halbert db6c9836b0 don't need to select macOS sdk any more 2022-07-27 22:28:00 -04:00
Dan Halbert 0a6f9112b1 update mpy-cross macOS build to macos 11; make macos mpy-cross names consistent 2022-07-27 14:50:57 -04:00
Jeff Epler 7608d90fcb
Use arm-none-eabi-gcc-action 2022-06-28 18:43:19 -05:00
Jeff Epler da26c9ce82
use setup-python v4 for python-path support 2022-06-17 16:21:27 +02:00
Jeff Epler 8ed791060c
include python executable path in the idf key
I noticed that the latest time we needed to switch the idf key was when
the environment changed from python 3.10.4 to 3.10.5. I don't know if
this is the only cause of needing to change the key, but it seems to be
a good idea to make the key include it.

I think this is what's going on because when I replaced a virtualenv's
"python" with a dangling symlink (same as would occur when python's
version gets bumped), I got a similar error.
2022-06-16 21:10:19 +02:00
Dan Halbert 814640e25a run circuitpython.org website PR action with adafruit-adabot instead of adafruit-blinka 2022-05-03 16:29:54 -04:00
Dan Halbert c3539f0948
bump espressif CI cache id 2022-04-05 09:12:02 -04:00
Dan Halbert d20ae5ab24 revert pins of click and typer 2022-04-01 20:51:11 -04:00
Jeff Epler 9a88c85657
also pin typer for windows builds 2022-03-28 19:37:18 -05:00
Jeff Epler 0326e004b8
Fix running tests
.. -mcache-lookup-bc is gone and forgotten
2022-02-16 14:28:56 -06:00
Jeff Epler c4ae8c8320
Merge pull request #6028 from jepler/fix-test-natmod
Fix all natmod tests to run on x64
2022-02-15 20:52:36 -06:00
Scott Shawcroft 947a53c8d1
Merge pull request #6033 from jepler/better-describe
Improve use of `git describe`
2022-02-15 10:48:55 -08:00
Jeff Epler adfa6ef019
Fix all natmod tests to run on x64
My testing sequence is

```
git clean -dxf examples
arch=x64; make -C examples/natmod/features1 ARCH=$arch && make -C examples/natmod/features2 ARCH=$arch && make -C examples/natmod/btree ARCH=$arch && make -C examples/natmod/framebuf ARCH=$arch && make -C examples/natmod/uheapq ARCH=$arch && make -C examples/natmod/urandom ARCH=$arch && make -C examples/natmod/ure ARCH=$arch && make -C examples/natmod/uzlib ARCH=$arch
(cd tests && ./run-natmodtests.py "$@" extmod/{btree*,framebuf*,uheapq*,ure*,uzlib*}.py)
```
2022-02-13 11:18:38 -06:00
microDev 036c13a2d5
automatically cancel superseded ci build of pr 2022-01-26 01:10:25 +05:30
Dan Halbert 8c8997f42a Push stubs to pypi only on a release 2022-01-12 14:14:21 -05:00
Jeff Epler 23022a5a7f
Add, use tools/describe script
This isn't intended to make any overt behavioral change, but
there is a slight one in the value of CP_VERSION that will be used
during CI, because it will now include `--always --match "..."`,
so there could be a change to the uploaded name of the mpy-cross
artifacts on s3.
2022-01-04 11:14:03 -06:00
Dan Halbert b60a806968
Merge pull request #5752 from jepler/ci-python3
make github-ci install python version "3.x" everywhere we use actions/setup-python (and upgrade to setup-python@v2)
2021-12-20 21:24:47 -05:00
Jeff Epler d61d8b1020
set up python 3.x and use setup-python@v2 2021-12-20 19:05:51 -06:00