Skip to content

Commit 8c5aa42

Browse files
authored
CI fix, updated action version (#93)
1 parent 3730b42 commit 8c5aa42

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ jobs:
3232
env:
3333
CFLAGS: "-I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"
3434
steps:
35-
- uses: actions/checkout@v1
36-
name: checkout
37-
with:
38-
submodules: true
39-
clean: true
40-
fetch-depth: 1
41-
token: ${{ secrets.CI_TOKEN }}
35+
- uses: actions/checkout@v2
36+
name: checkout repo
37+
- name: checkout submodules
38+
shell: bash
39+
run: |
40+
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
41+
git submodule sync --recursive
42+
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
4243
- name: install dependencies
4344
run: |
4445
set -e

.github/workflows/clang-tidy.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ jobs:
1212
build:
1313
runs-on: macOS-10.14
1414
steps:
15-
- uses: actions/checkout@v1
16-
name: checkout
17-
with:
18-
submodules: true
19-
clean: true
20-
fetch-depth: 1
15+
- uses: actions/checkout@v2
16+
name: checkout repo
17+
- name: checkout submodules
18+
shell: bash
19+
run: |
20+
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
21+
git submodule sync --recursive
22+
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
2123
- name: install
2224
run: |
2325
brew install ninja llvm

0 commit comments

Comments
 (0)