-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into github-actions-system-ghc
- Loading branch information
Showing
6 changed files
with
134 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Release process | ||
|
||
## Preparation | ||
|
||
* Run `ruby misc/remove-trailing-space.rb` | ||
* Run `ruby misc/collect-language-pragmas.rb` and update `Other-Extensions` in `.cabal` if necesary | ||
* Run `ruby misc/collect-min-version-macro.rb` and remove `#if`s that are always satisfied by the versions specified by `Build-Depends` | ||
* Update `CHANGELOG.markdown` | ||
* Bump version in `toysolver.cabal` if necessary. | ||
|
||
## Set environment variables | ||
|
||
```shell-session | ||
$ export GHC_VERSION=9.4 | ||
$ export TOYSOLVER_VERSION=X.Y.Z | ||
``` | ||
|
||
## Make git tag and push it | ||
|
||
```shell-session | ||
$ git tag v${TOYSOLVER_VERSION} | ||
$ git push origin v${TOYSOLVER_VERSION} | ||
``` | ||
|
||
## Check draft release generated by GitHub Actions | ||
|
||
. | ||
|
||
## Upload to Hackage | ||
|
||
```shell-session | ||
$ stack upload .` | ||
``` | ||
|
||
## Make the draft release public | ||
|
||
. | ||
|
||
## Update [homebrew-tap](https://github.com/msakai/homebrew-tap) | ||
|
||
e.g. https://github.com/msakai/homebrew-tap/pull/3 | ||
|
||
## Update docker image | ||
|
||
On AMD64 machine: | ||
|
||
```shell-session | ||
$ docker build --platform linux/amd64 \ | ||
--build-arg GHC_VERSION --build-arg TOYSOLVER_VERSION \ | ||
-t msakai/toysolver:${TOYSOLVER_VERSION}-amd64 -f docker/Dockerfile . | ||
$ docker push msakai/toysolver:${TOYSOLVER_VERSION}-amd64 | ||
``` | ||
|
||
On macOS with Apple Silicon: | ||
|
||
```shell-session | ||
$ docker build --platform linux/arm64 \ | ||
--build-arg GHC_VERSION --build-arg TOYSOLVER_VERSION \ | ||
-t msakai/toysolver:${TOYSOLVER_VERSION}-arm64 -f docker/Dockerfile . | ||
$ docker push msakai/toysolver:${TOYSOLVER_VERSION}-arm64 | ||
``` | ||
|
||
```shell-session | ||
$ docker manifest create msakai/toysolver:${TOYSOLVER_VERSION} \ | ||
--amend msakai/toysolver:${TOYSOLVER_VERSION}-amd64 \ | ||
--amend msakai/toysolver:${TOYSOLVER_VERSION}-arm64 | ||
$ docker manifest push msakai/toysolver:${TOYSOLVER_VERSION} | ||
$ docker manifest create msakai/toysolver:latest \ | ||
--amend msakai/toysolver:${TOYSOLVER_VERSION}-amd64 \ | ||
--amend msakai/toysolver:${TOYSOLVER_VERSION}-arm64 | ||
$ docker manifest push msakai/toysolver:latest | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters