Skip to content

Commit de4c735

Browse files
committed
fix(ci): make sccache optional in Docker builds to survive GHA cache outages
1 parent ef4b1c1 commit de4c735

7 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v4
2121

2222
- name: Install Rust
23-
uses: dtolnay/rust-toolchain@1.94.0
23+
uses: dtolnay/rust-toolchain@1.95.0
2424
with:
2525
components: rustfmt, clippy
2626

@@ -48,7 +48,7 @@ jobs:
4848
uses: actions/checkout@v4
4949

5050
- name: Install Rust
51-
uses: dtolnay/rust-toolchain@1.94.0
51+
uses: dtolnay/rust-toolchain@1.95.0
5252
with:
5353
components: rustfmt
5454

@@ -63,7 +63,7 @@ jobs:
6363
uses: actions/checkout@v4
6464

6565
- name: Install Rust
66-
uses: dtolnay/rust-toolchain@1.94.0
66+
uses: dtolnay/rust-toolchain@1.95.0
6767
with:
6868
components: clippy
6969

@@ -89,7 +89,7 @@ jobs:
8989
strategy:
9090
matrix:
9191
os: [ubuntu-latest, windows-latest, macos-latest]
92-
rust: [1.94.0]
92+
rust: [1.95.0]
9393
include:
9494
- os: ubuntu-latest
9595
rust: beta
@@ -133,7 +133,7 @@ jobs:
133133
uses: actions/checkout@v4
134134

135135
- name: Install Rust
136-
uses: dtolnay/rust-toolchain@1.94.0
136+
uses: dtolnay/rust-toolchain@1.95.0
137137

138138
- name: Install protobuf compiler
139139
uses: arduino/setup-protoc@v3
@@ -154,7 +154,7 @@ jobs:
154154
uses: actions/checkout@v4
155155

156156
- name: Install Rust
157-
uses: dtolnay/rust-toolchain@1.94.0
157+
uses: dtolnay/rust-toolchain@1.95.0
158158

159159
- name: Install protobuf compiler
160160
uses: arduino/setup-protoc@v3

.github/workflows/dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121

2222
- name: Install Rust
23-
uses: dtolnay/rust-toolchain@1.94.0
23+
uses: dtolnay/rust-toolchain@1.95.0
2424

2525
- name: Install protobuf compiler
2626
run: |

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
uses: actions/checkout@v4
160160

161161
- name: Install Rust
162-
uses: dtolnay/rust-toolchain@1.94.0
162+
uses: dtolnay/rust-toolchain@1.95.0
163163
with:
164164
targets: ${{ matrix.target }}
165165

@@ -210,8 +210,6 @@ jobs:
210210
211211
- name: Build binary
212212
shell: sh
213-
env:
214-
RUSTC_WRAPPER: sccache
215213
run: |
216214
if [ "${{ runner.os }}" = "Linux" ]; then
217215
# Use official Rust Docker image for Linux builds
@@ -225,16 +223,18 @@ jobs:
225223
-v "$(pwd):/workspace" \
226224
-v "$RUNNER_TEMP/sccache-cache:/sccache-cache" \
227225
-w /workspace \
228-
-e RUSTC_WRAPPER=sccache \
229226
-e SCCACHE_GHA_ENABLED=true \
230227
-e ACTIONS_CACHE_URL="${ACTIONS_CACHE_URL}" \
231228
-e ACTIONS_RUNTIME_TOKEN="${ACTIONS_RUNTIME_TOKEN}" \
232229
-e SCCACHE_DIR=/sccache-cache \
233-
rust:1.94.0-alpine3.23 \
230+
rust:1.95.0-alpine3.23 \
234231
sh -c "
235232
apk add --no-cache musl-dev openssl-dev openssl-libs-static pkgconfig gcc g++ protobuf-dev curl && \
236233
curl -fsSL https://github.com/mozilla/sccache/releases/download/v0.10.0/sccache-v0.10.0-${SCCACHE_ARCH}.tar.gz | tar xz --strip-components=1 -C /usr/local/bin sccache-v0.10.0-${SCCACHE_ARCH}/sccache && \
237234
rustup target add ${{ matrix.target }} && \
235+
if sccache --start-server 2>/dev/null; then
236+
export RUSTC_WRAPPER=sccache
237+
fi && \
238238
cargo build --release --target ${{ matrix.target }} --no-default-features
239239
"
240240
elif [ "${{ runner.os }}" = "Windows" ]; then
@@ -292,7 +292,7 @@ jobs:
292292
uses: actions/checkout@v4
293293

294294
- name: Install Rust
295-
uses: dtolnay/rust-toolchain@1.94.0
295+
uses: dtolnay/rust-toolchain@1.95.0
296296

297297
- name: Install protobuf compiler
298298
uses: arduino/setup-protoc@v3

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "octocode"
33
version = "0.14.1"
44
edition = "2021"
5-
rust-version = "1.82"
5+
rust-version = "1.95"
66
authors = ["Muvon Un Limited <opensource@muvon.io>"]
77
description = "AI-powered code intelligence with semantic search, knowledge graphs, and built-in MCP server. Transform your codebase into a queryable knowledge graph for AI assistants."
88
homepage = "https://octocode.muvon.io"
@@ -98,7 +98,7 @@ dotenvy = "0.15"
9898

9999
# Local dependency on octolib with embedding features
100100
# octolib = { path = "../octolib", features = ["fastembed", "huggingface"] }
101-
octolib = { version = "0.15.2", default-features = false }
101+
octolib = { version = "0.16.0", default-features = false }
102102

103103
# MCP SDK - official Rust implementation
104104
rmcp = { version = "1.3.0", features = ["server", "macros", "transport-io", "transport-streamable-http-server"] }

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Multi-stage Dockerfile for octocode
1616
# Stage 1: Build
17-
FROM rust:1.94.0-slim AS builder
17+
FROM rust:1.95-slim AS builder
1818

1919
# Install system dependencies
2020
RUN apt-get update && apt-get install -y \

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.91.1"
2+
channel = "1.95.0"
33
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)