Skip to content
Closed
Prev Previous commit
Next Next commit
First setup git repo, then apply fixes
  • Loading branch information
tobiasdiez authored Sep 28, 2023
commit 43194f8f5b3a41a7a15f44ecd50c335d4d5065cf
23 changes: 5 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ jobs:
with:
gh-cli-version: 2.32.0

- name: Merge CI fixes from sagemath/sage
if: ${{ github.event_name == 'pull_request' }}
run: |
.ci/merge-fixes.sh
env:
GH_TOKEN: ${{ github.token }}

- name: Add prebuilt tree as a worktree
id: worktree
run: |
Expand Down Expand Up @@ -81,18 +74,12 @@ jobs:
if [ ! -f worktree-image/.gitignore ]; then cp .gitignore worktree-image/; fi
(cd worktree-image && git add -A && git commit --quiet --allow-empty -m "old" -a && git tag -f old && git reset --hard new && git reset --quiet old && git add -N . && git status)

- name: Download upstream artifact
uses: actions/download-artifact@v3
with:
path: upstream
name: upstream

- name: Apply CI fixes from sagemath/sage
# After applying the fixes, make sure all changes are marked as uncommitted changes.
- name: Merge CI fixes from sagemath/sage
if: ${{ github.event_name == 'pull_request' }}
run: |
if [ -r upstream/ci_fixes.patch ]; then
(cd worktree-image && git commit -q -m "current changes" --allow-empty -a && git am; git reset --quiet old; git add -N .) < upstream/ci_fixes.patch
fi
.ci/merge-fixes.sh
env:
GH_TOKEN: ${{ github.token }}

- name: Incremental build, test changed files (sage -t --new)
id: incremental
Expand Down