From 6fb60ef9cffc85a951d11fef85cd5df70c277b0f Mon Sep 17 00:00:00 2001 From: Philip Howard Date: Thu, 6 Jun 2024 20:54:24 +0100 Subject: [PATCH] CI: Update some deprecated dependency versions (#669) * CI: Bump various build workflow versions. * CI: Continue other jobs on failure. Give a more complete overview of failures, rather than forcing the developer to play whack-a-mole. * CI: Do not modify unix mpconfigport.h. Since `MICROPY_PY_UHASHLIB` does not occur in unix/mpconfigport.h this would have simply duplicated the config file and supplied it as `MP_CONFIGFILE` triggering a bug in how this define is handled. --- .github/workflows/build.yml | 20 +++++++++++--------- build-cp.sh | 3 +-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8900bc7..c0477ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,7 @@ on: jobs: micropython: + continue-on-error: true strategy: matrix: os: @@ -28,10 +29,10 @@ jobs: env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - - name: Set up Python 3.10 - uses: actions/setup-python@v1 + - name: Set up Python 3.12 + uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Install requirements run: | @@ -44,10 +45,10 @@ jobs: gcc --version python3 --version - name: Checkout ulab - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Checkout micropython repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: micropython/micropython path: micropython @@ -56,6 +57,7 @@ jobs: run: ./build.sh ${{ matrix.dims }} circuitpython: + continue-on-error: true strategy: matrix: os: @@ -68,10 +70,10 @@ jobs: env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - - name: Set up Python 3.10 - uses: actions/setup-python@v1 + - name: Set up Python 3.12 + uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Versions run: | @@ -79,7 +81,7 @@ jobs: python3 --version - name: Checkout ulab - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Install requirements run: | diff --git a/build-cp.sh b/build-cp.sh index ee6a95e..9081a61 100755 --- a/build-cp.sh +++ b/build-cp.sh @@ -41,8 +41,7 @@ HERE="$(dirname -- "$(readlinkf_posix -- "${0}")" )" rm -rf circuitpython/extmod/ulab; ln -s "$HERE" circuitpython/extmod/ulab dims=${1-2} make -C circuitpython/mpy-cross -j$NPROC -sed -e '/MICROPY_PY_UHASHLIB/s/1/0/' < circuitpython/ports/unix/mpconfigport.h > circuitpython/ports/unix/mpconfigport_ulab.h -make -k -C circuitpython/ports/unix -j$NPROC DEBUG=1 MICROPY_PY_FFI=0 MICROPY_PY_BTREE=0 MICROPY_SSL_AXTLS=0 MICROPY_PY_USSL=0 CFLAGS_EXTRA="-DMP_CONFIGFILE=\"\" -Wno-tautological-constant-out-of-range-compare -Wno-unknown-pragmas -DULAB_MAX_DIMS=$dims" BUILD=build-$dims PROG=micropython-$dims +make -k -C circuitpython/ports/unix -j$NPROC DEBUG=1 MICROPY_PY_FFI=0 MICROPY_PY_BTREE=0 MICROPY_SSL_AXTLS=0 MICROPY_PY_USSL=0 CFLAGS_EXTRA="-Wno-tautological-constant-out-of-range-compare -Wno-unknown-pragmas -DULAB_MAX_DIMS=$dims" BUILD=build-$dims PROG=micropython-$dims # bash test-common.sh "${dims}" "circuitpython/ports/unix/micropython-$dims"