Skip to content

Commit 67c039d

Browse files
committed
Checkout before installing deps
1 parent 7867632 commit 67c039d

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,6 @@ jobs:
132132
env:
133133
GITHUB_CONTEXT: ${{ toJson(github) }}
134134
run: echo "$GITHUB_CONTEXT"
135-
- name: Install dependencies
136-
run: |
137-
brew install gettext
138-
echo >>$GITHUB_PATH /usr/local/opt/gettext/bin
139-
- name: Versions
140-
run: |
141-
gcc --version
142-
python3 --version
143-
msgfmt --version
144135
- uses: actions/[email protected]
145136
with:
146137
submodules: true
@@ -150,6 +141,15 @@ jobs:
150141
run: |
151142
git describe --dirty --tags
152143
echo >>$GITHUB_ENV CP_VERSION=$(git describe --dirty --tags)
144+
- name: Install dependencies
145+
run: |
146+
brew install gettext
147+
echo >>$GITHUB_PATH /usr/local/opt/gettext/bin
148+
- name: Versions
149+
run: |
150+
gcc --version
151+
python3 --version
152+
msgfmt --version
153153
- name: Build mpy-cross
154154
run: make -C mpy-cross -j2
155155
- uses: actions/upload-artifact@v2
@@ -355,6 +355,11 @@ jobs:
355355
uses: actions/setup-python@v1
356356
with:
357357
python-version: 3.8
358+
- uses: actions/[email protected]
359+
with:
360+
submodules: true
361+
fetch-depth: 0
362+
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
358363
- name: Install deps
359364
run: |
360365
sudo apt-get install -y gettext
@@ -366,11 +371,6 @@ jobs:
366371
gcc --version
367372
arm-none-eabi-gcc --version
368373
python3 --version
369-
- uses: actions/[email protected]
370-
with:
371-
submodules: true
372-
fetch-depth: 0
373-
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
374374
- name: mpy-cross
375375
run: make -C mpy-cross -j2
376376
- name: build
@@ -404,6 +404,11 @@ jobs:
404404
uses: actions/setup-python@v1
405405
with:
406406
python-version: 3.8
407+
- uses: actions/[email protected]
408+
with:
409+
submodules: true
410+
fetch-depth: 0
411+
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
407412
- name: Install deps
408413
run: |
409414
sudo apt-get install -y gettext
@@ -415,11 +420,6 @@ jobs:
415420
gcc --version
416421
riscv64-unknown-elf-gcc --version
417422
python3 --version
418-
- uses: actions/[email protected]
419-
with:
420-
submodules: true
421-
fetch-depth: 0
422-
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
423423
- name: mpy-cross
424424
run: make -C mpy-cross -j2
425425
- name: build

0 commit comments

Comments
 (0)