Release procedure
The weekly workflow check-upstream.yml runs check and opens (or updates) an issue "New upstream release: giac X.Y.Z" in this repository. Then, for giac X.Y.Z:
- Check (optional, the issue already did it):
julia --project=. bin/upstream-sync.jl check giac - Import into an up-to-date clone of the fork:
Review it:git -C ../giac fetch origin && git -C ../giac branch -f main origin/main julia --project=. bin/upstream-sync.jl import giac X.Y.Z --repo ../giacgit -C ../giac show --stat upstream-import/X.Y.Z. - Publish the import (this tool never pushes):
Merge that pull request with any method (merge commit, squash or rebase).git -C ../giac push origin upstream-import/X.Y.Z gh pr create --repo JuliaGiac/giac --base main --head upstream-import/X.Y.Z \ --title "import upstream giac X.Y.Z" - Tag the merged commit, then push the tag:
julia --project=. bin/upstream-sync.jl tag giac X.Y.Z --repo ../giac git -C ../giac push origin upstream/X.Y.Zcheckreads theseupstream/X.Y.Ztags as the imported versions. - Plan the fork update (with
devup to date:git -C ../giac pull --ff-only):
Readjulia --project=. bin/upstream-sync.jl merge-plan giac X.Y.Z --repo ../giac \ --resolve-expectedmerge-plan-giac-X.Y.Z.md: expected and real conflicts, excluded additions, upstream changes on files we patched, and the new upstream files (add new sources and tests to the Meson build). A "deleted by us" real conflict is a filedevremoved outsidefork_excluded_paths: keep the deletion or restore the file, and updatefork_excluded_pathsif the removal is intended. - Merge into dev: in the worktree
../giac-sync-X.Y.Z(branchsync/X.Y.Z, merge in progress, expected conflicts and excluded additions already removed), resolve the real conflicts, bump the version inmeson.build, run the tests,git commit, pushsync/X.Y.Zand open a pull request todev. Thengit -C ../giac worktree remove ../giac-sync-X.Y.Z. - Send our fixes upstream:
julia --project=. bin/upstream-sync.jl export giac --repo ../giac --output fixes.mdand send the links of the relevant commits to Bernard Parisse. - Close the issue.