From 7af6993501032add0dd228805810e00ed8eba6b8 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Thu, 7 Dec 2023 15:36:45 -0800 Subject: [PATCH] Per-commit CI should start from oldest commit --- .github/workflows/continuous-integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 48ef2c116a..70d102aa39 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -29,7 +29,7 @@ jobs: run: sudo xargs apt-get install -y < .github/workflows/apt-packages.txt - run: | - for commit in $(git rev-list origin/master..HEAD); do + for commit in $(git rev-list origin/master..HEAD | tac); do git checkout $commit echo "Checking commit $commit" ci-tests/build-spike @@ -49,7 +49,7 @@ jobs: run: xargs brew install --overwrite < .github/workflows/brew-packages.txt - run: | - for commit in $(git rev-list origin/master..HEAD); do + for commit in $(git rev-list origin/master..HEAD | xargs tail -r); do git checkout $commit echo "Checking commit $commit" ci-tests/build-spike