summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Halbert <halbert@adafruit.com>2020-04-13 14:01:13 -0400
committerGitHub <noreply@github.com>2020-04-13 14:01:13 -0400
commit1f17bdb4ff6e6f5a1f1ff59245edbaa64c0d8c7c (patch)
tree55489384d1ef6d9b4a23144116b1f7ba92b9030c
parent76f3aa47665ba8d8ae59aacf3b7d28d54af682c7 (diff)
parentf817bfe3c6d66c9b5ebd673aeef2e4cf773c70be (diff)
Merge pull request #2765 from jepler/checkout-v2-subomdules
switch to checkout@v2 with submodules and fetch-depth 0
-rw-r--r--.github/workflows/build.yml33
-rw-r--r--.github/workflows/create_website_pr.yml7
2 files changed, 29 insertions, 11 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0fc6ce5a4..ddd41412f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -16,6 +16,16 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+ fetch-depth: 0
+ - run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
+ - run: git submodule sync
+ - run: git submodule foreach git remote -v
+ - run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
+ - name: CircuitPython version
+ run: git describe --dirty --tags
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
@@ -29,11 +39,6 @@ jobs:
run: |
gcc --version
python3 --version
- - uses: actions/checkout@v1
- with:
- submodules: true
- - name: CircuitPython version
- run: git describe --dirty --always --tags
- name: Build mpy-cross
run: make -C mpy-cross -j2
- name: Build unix port
@@ -103,11 +108,16 @@ jobs:
gcc --version
python3 --version
msgfmt --version
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v2
with:
submodules: true
+ fetch-depth: 0
+ - run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
+ - run: git submodule sync
+ - run: git submodule foreach git remote -v
+ - run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
- name: CircuitPython version
- run: git describe --dirty --always --tags
+ run: git describe --dirty --tags
- name: Build mpy-cross
run: make -C mpy-cross -j2
- uses: actions/upload-artifact@v1.0.0
@@ -260,9 +270,14 @@ jobs:
gcc --version
arm-none-eabi-gcc --version
python3 --version
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v2
with:
submodules: true
+ fetch-depth: 0
+ - run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
+ - run: git submodule sync
+ - run: git submodule foreach git remote -v
+ - run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
- name: mpy-cross
run: make -C mpy-cross -j2
- name: build
@@ -325,4 +340,4 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')) \ No newline at end of file
+ if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
diff --git a/.github/workflows/create_website_pr.yml b/.github/workflows/create_website_pr.yml
index 963fadd3d..da4dad179 100644
--- a/.github/workflows/create_website_pr.yml
+++ b/.github/workflows/create_website_pr.yml
@@ -23,11 +23,14 @@ jobs:
run: |
gcc --version
python3 --version
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v2
with:
submodules: true
+ fetch-depth: 0
+ - run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
+ - run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
- name: CircuitPython version
- run: git describe --dirty --always --tags
+ run: git describe --dirty --tags
- name: Website
run: python3 build_board_info.py
working-directory: tools