From d120984a7dc5407050ac32b68cd7850e6e74ce6b Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 8 Jun 2022 12:18:36 +0200 Subject: [PATCH 1/4] print context with github-script --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4406eed..9a50d43 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,10 +10,10 @@ jobs: test: runs-on: ubuntu-20.04 steps: - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: echo "$GITHUB_CONTEXT" + - name: View context attributes + uses: actions/github-script@v6 + with: + script: console.log(context) - name: Translate Repo Name For Build Tools filename_prefix id: repo-name run: | From 6096ad7f98e85318ceeba873c34c34b21805bbec Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 8 Jun 2022 12:32:09 +0200 Subject: [PATCH 2/4] what if stringify? --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a50d43..36bc54c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: - name: View context attributes uses: actions/github-script@v6 with: - script: console.log(context) + script: console.log(JSON.stringify(context)) - name: Translate Repo Name For Build Tools filename_prefix id: repo-name run: | From aab10616150125c03dc72e7082224f0075c8b2d4 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 8 Jun 2022 12:33:47 +0200 Subject: [PATCH 3/4] what if pretty --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 36bc54c..fa8c5d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: - name: View context attributes uses: actions/github-script@v6 with: - script: console.log(JSON.stringify(context)) + script: console.log(JSON.stringify(context, null, 2)) - name: Translate Repo Name For Build Tools filename_prefix id: repo-name run: | From 9d768243f5a1c1086ea32984edcee579d9dbd144 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 19 Sep 2022 19:10:59 -0500 Subject: [PATCH 4/4] fetch tags before building circuitpython --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fa8c5d3..5ec1568 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,7 @@ jobs: - name: Clone and build circuitpython unix port run: | set -e - [ -e circuitpython/py/py.mk ] || git clone --depth=1 https://github.com/adafruit/circuitpython + [ -e circuitpython/py/py.mk ] || (git clone --depth=1 https://github.com/adafruit/circuitpython && cd circuitpython && git fetch --tags --recurse-submodules=no --shallow-since="2021-07-01" https://github.com/adafruit/circuitpython HEAD) [ -e circuitpython/lib/libffi/autogen.sh ] || (cd circuitpython && git submodule update --init lib/libffi lib/axtls lib/berkeley-db-1.xx tools/huffman lib/uzlib extmod/ulab) [ -x circuitpython/ports/unix/micropython ] || ( make -C circuitpython/mpy-cross -j$(nproc)