-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* v0.5.0 Update: changelog Update: wasm binary and files Bump: deps Add: release on version tag github action Add: release checklist * Remove: Android CI target Failing due to not finding libunwind This is related to: cross-rs/cross#1128 There is a workaround: rust-lang/rust#85806 (comment) Someone might want to try implement it later For now I'm pulling out the android compiles from CI
- Loading branch information
Showing
11 changed files
with
123 additions
and
38 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,26 @@ | ||
name: Version Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- 'v[0-9]+.[0-9]+.*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# Trims latest release notes from CHANGELOG,md | ||
- name: Generate Release Notes | ||
run: sed '1p;1,/^##/!d;/##/d' CHANGELOG.md > ${{ github.ref_name }}.md | ||
|
||
- name: Publish Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: ${{ github.ref_name }}.md | ||
env: | ||
GITHUB_REPOSITORY: Argyle-Software/kyber |
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 |
---|---|---|
|
@@ -13,4 +13,3 @@ www/node_modules/ | |
www/dist/ | ||
www/.bin/ | ||
pkg/package.json.bak | ||
release_checklist |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
import * as wasm from "./pqc_kyber_bg.wasm"; | ||
export * from "./pqc_kyber_bg.js"; | ||
import { __wbg_set_wasm } from "./pqc_kyber_bg.js"; | ||
__wbg_set_wasm(wasm); | ||
export * from "./pqc_kyber_bg.js"; |
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
Binary file not shown.
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,38 @@ | ||
# Release Checklist | ||
|
||
1. Bump any dependencies in **Cargo.toml** | ||
|
||
2. Run tests and address sanitiser checks: | ||
```bash | ||
export RUSTFLAGS="${RUSTFLAGS:-} -Z sanitizer=address -C target-cpu=native -C target-feature=+aes,+avx2,+sse2,+sse4.1,+bmi2,+popcnt";\ | ||
export RUSTDOCFLAGS="-Z sanitizer=address"; | ||
rustup default nightly; | ||
KAT=1 AVX2=1 NASM=1 ./tests/run_all_tests.sh; | ||
``` | ||
|
||
3. Bump version in **Cargo.toml** | ||
|
||
4. Bump version in deps.rs badge and features section of **readme.md** | ||
|
||
5. Update **changelog.md** | ||
|
||
6. `cargo +nightly fmt` | ||
|
||
7. `wasm-pack build -- --features wasm` | ||
|
||
8. Fix autogenerated **pkg/package.json**: | ||
* name - Replace `pqc_kyber` with `pqc-kyber` | ||
* description - Revert line to replace with old description | ||
|
||
9. `git commit -m "v0.0.0"` | ||
|
||
10. `git tag v0.0.0` | ||
|
||
11. `git push origin v0.0.0` | ||
|
||
12. Open PR to master, confirm all CI checks pass, merge PR | ||
|
||
13. `cargo publish` | ||
|
||
14. `npm publish` | ||
|