diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 70b22ca..df706f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,9 @@ jobs: - target: x86_64-apple-darwin os: macos-latest file-suffix: "" + - target: aarch64-apple-darwin + os: macos-latest + file-suffix: "" steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 @@ -30,10 +33,9 @@ jobs: run: sudo apt install -y libvncserver-dev - if: runner.os == 'macOS' run: brew install libvncserver - - uses: actions-rs/cargo@v1 - with: - command: build - args: --release --target=${{ matrix.target }} + - name: Build binary + # We don't want to e.g. set "-C target-cpu=native", so that the binary should run everywhere + run: RUSTFLAGS='' cargo build --release --target=${{ matrix.target }} --no-default-features - name: Rename binary file run: mv target/${{ matrix.target }}/release/breakwater${{ matrix.file-suffix }} breakwater-${{ matrix.target }}${{ matrix.file-suffix }} - name: Upload Release binaries diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7e18d30 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,24 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [Unreleased] + +## [0.13.0] - 2024-05-15 + +## Added + +- Also release binary for `aarch64-apple-darwin` ([#22]). + +### Changed + +- Second rewrite with the following improvements: ([#21]) + * Put `Parser` behind a trait, so that we can have multiple implementation in parallel + * Use cargo workspaces + * Better error handling using snafu +- BREAKING: Build release binaries without support for VNC, as this ([#22]) + * Has a dependecy on a dynamically linked library on the host executing the binary + * Needs a cross-compilation (which didn't work), as the macOS GitHub runners all run on arm and we try to build an x86 binary + +[#21]: https://github.com/sbernauer/breakwater/pull/21 +[#22]: https://github.com/sbernauer/breakwater/pull/22 diff --git a/Cargo.lock b/Cargo.lock index 2847d18..642eeec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -172,7 +172,7 @@ checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" [[package]] name = "breakwater" -version = "0.12.0" +version = "0.13.0" dependencies = [ "breakwater-core", "breakwater-parser", @@ -196,7 +196,7 @@ dependencies = [ [[package]] name = "breakwater-core" -version = "0.12.0" +version = "0.13.0" dependencies = [ "const_format", "tokio", @@ -204,7 +204,7 @@ dependencies = [ [[package]] name = "breakwater-parser" -version = "0.12.0" +version = "0.13.0" dependencies = [ "breakwater-core", "criterion", diff --git a/Cargo.toml b/Cargo.toml index 2a13be9..6f582c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["breakwater-core", "breakwater-parser", "breakwater"] resolver = "2" [workspace.package] -version = "0.12.0" +version = "0.13.0" license = "Beerware" authors = ["Sebastian Bernauer "] edition = "2021"