diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index fe492a48e..e8fb5e50a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,4 +1,4 @@ -name: build and upload docker image +name: docker on: push: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..b06673a5d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,50 @@ +name: release + +permissions: + contents: write + +on: + push: + tags: + - v[0-9]+.[0-9]+.[0-9]+ + +jobs: + create-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/create-gh-release-action@v1 + with: + changelog: CHANGELOG.md + token: ${{ secrets.GITHUB_TOKEN }} + + upload-assets: + strategy: + matrix: + include: + - target: aarch64-unknown-linux-gnu # ARM64 Linux (kernel 4.1, glibc 2.17+) + os: ubuntu-latest + - target: x86_64-unknown-linux-gnu # 64-bit Linux (kernel 3.2+, glibc 2.17+) + os: ubuntu-latest + - target: armv7-unknown-linux-gnueabihf # ARMv7-A Linux, hardfloat (kernel 3.2, glibc 2.17, RPi) + os: ubuntu-latest + - target: aarch64-apple-darwin # ARM64 macOS (11.0+, Big Sur+) + os: macos-latest + - target: x86_64-apple-darwin # # 64-bit macOS (10.7+, Lion+) + os: macos-latest + - target: x86_64-pc-windows-gnu # 64-bit MinGW (Windows 7+) + os: windows-latest + - target: x86_64-pc-windows-msvc # 64-bit MSVC (Windows 7+) + os: windows-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/upload-rust-binary-action@v1 + with: + bin: aquadoggo + tar: unix + zip: windows + checksum: sha256,sha512 + archive: $bin-$tag-$target + target: ${{ matrix.target }} + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index e2cdfbb45..a5682e8b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.5.0] + ### Added - Dial peers discovered via mDNS [#331](https://github.com/p2panda/aquadoggo/pull/331) @@ -61,6 +63,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Rework networking service [#502](https://github.com/p2panda/aquadoggo/pull/502) - Deduplicate peer connections when initiating replication sessions [#525](https://github.com/p2panda/aquadoggo/pull/525) - Improve consistency and documentation of configuration API [#528](https://github.com/p2panda/aquadoggo/pull/528) +- Improve log level config and user interface [#539](https://github.com/p2panda/aquadoggo/pull/539) ### Fixed @@ -92,6 +95,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Don't update or announce an update in schema provider if a schema with this id exists already [#472](https://github.com/p2panda/aquadoggo/pull/472) - Do nothing on document_view insertion conflicts [#474](https://github.com/p2panda/aquadoggo/pull/474) - Only over-write `http_port` when cli arg is passed [#489](https://github.com/p2panda/aquadoggo/pull/489) +- Move deserialization into PeerMessage to distinct variants correctly [#538](https://github.com/p2panda/aquadoggo/pull/538) ### Open Sauce @@ -223,7 +227,8 @@ Released on 2021-10-25: :package: [`crate`](https://crates.io/crates/aquadoggo/0 - Use p2panda-rs 0.2.1 with fixed linter setting [#41](https://github.com/p2panda/aquadoggo/41) - Use `tide` for HTTP server and `jsonrpc-v2` for JSON RPC [#29](https://github.com/p2panda/aquadoggo/29) -[unreleased]: https://github.com/p2panda/aquadoggo/compare/v0.4.0...HEAD +[unreleased]: https://github.com/p2panda/aquadoggo/compare/v0.5.0...HEAD +[0.5.0]: https://github.com/p2panda/aquadoggo/releases/tag/v0.5.0 [0.4.0]: https://github.com/p2panda/aquadoggo/releases/tag/v0.4.0 [0.3.0]: https://github.com/p2panda/aquadoggo/releases/tag/v0.3.0 [0.2.0]: https://github.com/p2panda/aquadoggo/releases/tag/v0.2.0 diff --git a/Cargo.lock b/Cargo.lock index e24765740..4c412a346 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -156,7 +156,7 @@ checksum = "3b13c32d80ecc7ab747b80c3784bce54ee8a7a0cc4fbda9bf4cda2cf6fe90854" [[package]] name = "aquadoggo" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "async-graphql", @@ -209,7 +209,7 @@ dependencies = [ [[package]] name = "aquadoggo_cli" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "aquadoggo", diff --git a/Cargo.toml b/Cargo.toml index fc24a6d0e..efbeff01c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,3 +3,8 @@ members = [ "aquadoggo", "aquadoggo_cli", ] + +[profile.release] +strip = true +lto = true +codegen-units = 1 diff --git a/README.md b/README.md index 3164a7c65..4b354de35 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@