Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: DeterminateSystems/nix-installer-action@v22
with:
summarize: false
- uses: DeterminateSystems/magic-nix-cache-action@v13
- run: nix flake check
- run: nix build .#scip-go
Expand All @@ -34,6 +36,8 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: DeterminateSystems/nix-installer-action@v22
with:
summarize: false
- uses: DeterminateSystems/magic-nix-cache-action@v13
- run: nix build .#docker

Expand Down Expand Up @@ -112,7 +116,9 @@ jobs:

- name: Run scip-go
working-directory: target
run: scip-go -o "$GITHUB_WORKSPACE/index.scip" -VV
run: |
/usr/bin/time -v -o "$GITHUB_WORKSPACE/metrics.txt" \
scip-go -o "$GITHUB_WORKSPACE/index.scip" -VV

- name: Validate index
working-directory: target
Expand All @@ -128,6 +134,16 @@ jobs:
| jq -e --arg f "${{ matrix.expect_file }}" \
'any(.documents[]; .relative_path == $f)'

- name: Report resource usage
run: |
{
echo "### scip-go: ${{ matrix.name }}"
echo '```'
grep -E 'Maximum resident|User time|System time|Percent of CPU' \
"$GITHUB_WORKSPACE/metrics.txt"
echo '```'
} >> "$GITHUB_STEP_SUMMARY"

fingerprint-sync:
runs-on: ubuntu-latest
steps:
Expand Down
Loading