Skip to content

Commit 0ad3f27

Browse files
committed
Fix Ci
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent acbcacf commit 0ad3f27

1 file changed

Lines changed: 22 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,37 @@ jobs:
4545
with:
4646
submodules: recursive
4747

48-
- name: Install Ninja (Unix)
49-
if: runner.os != 'Windows'
50-
run: |
51-
if [ "$RUNNER_OS" == "Linux" ]; then
52-
sudo apt-get update && sudo apt-get install -y ninja-build
53-
elif [ "$RUNNER_OS" == "macOS" ]; then
54-
brew install ninja
55-
fi
56-
57-
- name: Install Ninja (Windows)
58-
if: runner.os == 'Windows'
59-
run: |
60-
choco install ninja
61-
6248
- name: Install Python
6349
uses: actions/setup-python@v5
6450
with:
6551
python-version: "3.11"
6652

53+
- name: Install Protoc
54+
uses: arduino/setup-protoc@v3
55+
with:
56+
repo-token: ${{ secrets.GITHUB_TOKEN }}
57+
6758
- name: Install DuckDB Python
6859
run: |
6960
python -m pip install duckdb==1.3.2
7061
62+
- name: Install Ninja
63+
shell: bash
64+
run: |
65+
if [ "$RUNNER_OS" == "Linux" ]; then
66+
sudo apt-get update && sudo apt-get install -y ninja-build
67+
elif [ "$RUNNER_OS" == "macOS" ]; then
68+
brew install ninja
69+
elif [ "$RUNNER_OS" == "Windows" ]; then
70+
choco install ninja
71+
fi
72+
73+
- name: Setup Ccache
74+
uses: hendrikmuhs/ccache-action@v1
75+
continue-on-error: true
76+
with:
77+
key: ${{ github.job }}-${{ matrix.os }}-duckdb-v1.3.2
78+
7179
- name: Build and test
7280
shell: bash
7381
run: |

0 commit comments

Comments
 (0)