Skip to content

Commit 6e0da18

Browse files
author
Matthias Koeppe
committed
.github/workflows/ci-linux-incremental.yml: Compute metrics
1 parent 1963257 commit 6e0da18

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci-linux-incremental.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,22 @@ jobs:
6363
echo "uninstall_targets=$(echo $(for a in '' ${{ steps.changed-packages.outputs.configures_all_changed_files }}; do echo $a | sed -E 's,build/pkgs/([a-z0-9][_.a-z0-9]*)/spkg-configure[.]m4 *,\1-uninstall,'; done | sort -u))" >> $GITHUB_OUTPUT
6464
echo "build_targets=$(echo $(for a in '' ${{ steps.changed-packages.outputs.pkgs_all_changed_files }}; do SPKG=$(echo $a | sed -E 's,-,_,g;s,(build/)?pkgs/([a-z0-9][-_.a-z0-9]*)/[^ ]* *,\2,;'); if [ -f "build/pkgs/$SPKG/checksums.ini" -o -f "build/pkgs/$SPKG/requirements.txt" -o -f "build/pkgs/$SPKG/spkg-install" ]; then echo "$SPKG-ensure"; fi; done | sort -u))" >> $GITHUB_OUTPUT
6565
cat $GITHUB_OUTPUT
66+
- uses: actions/checkout@v4
67+
with:
68+
ref: ${{ github.base_ref }}
69+
path: worktree-base
70+
if: github.base_ref
71+
- name: Compute metrics
72+
run: |
73+
export PATH=build/bin:$PATH
74+
if [ -d worktree-base ]; then
75+
SAGE_ROOT=worktree-base sage-package metrics :all: > base-metrics.txt
76+
sage-package metrics :all: > metrics.txt
77+
diff --side-by-side base-metrics.txt metrics.txt
78+
echo "Base: $GITHUB_BASE_REF"
79+
else
80+
sage-package metrics :all:
81+
fi
6682
6783
test:
6884
needs: [changed_files]

0 commit comments

Comments
 (0)