@@ -20,13 +20,34 @@ jobs:
2020 target :
2121 - repository : kubernetes/kubernetes
2222 scip_binary : scip-go
23+ scip_args : " --verbose"
2324 - repository : google/guava
2425 scip_binary : scip-java
26+ scip_args : " index --verbose"
2527 # scip-java has problems with indexing Kotlin codebase
2628 # - repository: arrow-kt/arrow
2729 # scip_binary: scip-java
30+ # scip_args: "index --verbose"
2831 - repository : apache/pekko
2932 scip_binary : scip-java
33+ scip_args : " index --verbose"
34+ - repository : Textualize/rich
35+ scip_binary : scip-python
36+ scip_args : " index ."
37+ - repository : vuejs/core
38+ scip_binary : scip-typescript
39+ scip_args : " index"
40+ # scip-ruby does not have a Docker container image that we can use
41+ # out of the box. The existing one is for autoindexing purposes only.
42+ # - repository: Homebrew/brew
43+ # scip_binary: scip-ruby
44+ # scip_args: ""
45+ - repository : serde-rs/serde
46+ scip_binary : scip-rust
47+ scip_args : " "
48+ - repository : fmtlib/fmt
49+ scip_binary : scip-clang
50+ scip_args : " "
3051
3152 container : sourcegraph/${{ matrix.target.scip_binary }}:latest
3253 concurrency :
3960 repository : ${{ matrix.target.repository }}
4061 fetch-depth : 1
4162
63+ - name : Generate compile_commands.json
64+ if : ${{ matrix.target.scip_binary == 'scip-clang' }}
65+ run : |
66+ apt-get update
67+ apt-get install -y bear cmake make g++
68+ cmake -S . -B build
69+ bear -- make -C build
70+
71+ - name : Install Go
72+ if : ${{ matrix.target.scip_binary == 'scip-go' }}
73+ uses : actions/setup-go@v5
74+ with : { go-version-file: 'go.mod' }
75+
4276 - name : Cache Maven dependencies
4377 if : ${{ matrix.target.scip_binary == 'scip-java' }}
4478 uses : actions/cache@v4
@@ -49,27 +83,25 @@ jobs:
4983 ${{ runner.os }}-maven-${{ matrix.target.repository }}-
5084 ${{ runner.os }}-maven-
5185
52- - name : Install Go
53- if : ${{ matrix.target.scip_binary == 'scip-go' }}
54- uses : actions/setup-go@v5
55- with : { go-version-file: 'go.mod' }
86+ - name : Setup Rust toolchain
87+ if : ${{ matrix.target.scip_binary == 'scip-rust' }}
88+ uses : actions-rust-lang/setup-rust-toolchain@v1
89+ with :
90+ components : rust-analyzer
5691
5792 - name : Run SCIP
5893 run : |
5994 ${{ matrix.target.scip_binary }} --version
60- case "${{ matrix.target.scip_binary }}" in
61- scip-go)
62- ${{ matrix.target.scip_binary }} --verbose
63- ;;
64- scip-java)
65- ${{ matrix.target.scip_binary }} index --verbose
66- ;;
67- esac
95+ ${{ matrix.target.scip_binary }} ${{ matrix.target.scip_args }}
6896
6997 - name : Validate SCIP index size
7098 run : |
71- if [ $(stat -c%s index.scip) -lt 10000000 ]; then
72- echo "ERROR: SCIP dump suspiciously small (< 10MB)"
99+ size=$(stat -c%s index.scip) || {
100+ echo "ERROR: Failed to get SCIP index size"
101+ exit 1
102+ }
103+ if [ "$size" -lt 1000000 ]; then
104+ echo "ERROR: SCIP dump suspiciously small (< 1MB)"
73105 exit 1
74106 fi
75107 echo "SCIP dump size: $(du -h index.scip)"
0 commit comments