Skip to content

Commit

Permalink
Move sos-server to it's own crate (#460)
Browse files Browse the repository at this point in the history
* Refactor to server crate.

* Move binary file to sos-server crate.

* Update doc comments.

* Remove sos-server binary from the sos crate.

* Update doc comments.

* Remove server module from the sos-net crate.

* Remove obsolete convert command module.

* Add AGPL license file, update README.

* Include AGPL license file.

* Use shared sos-protocol crate.

* Move protocol files up a level.

* Fix search feature in sos-protocol.

Was causing the tests to fail.

* Remove obsolete test-utils feature.

* Tidy features and dependencies.

* Flatten structure in sos-net crate.

* Update Dockerfile.

* Flatten structure in server crate.

* Tweak doc comment.

* Move sos binary to crate.

* Bump minor version.

* Completely remove the device feature.

Multiple devices are intrinsic to much of the logic so trying to put
device support behind a feature flag was too cumbersome.

* Fixing handling of files feature.

* Improving feature handling.

* Fix handling of files feature.

* Bump patch version.

* Add release plz workflow.

* Update .gitignore.

* Using release-plz changelogs.
  • Loading branch information
tmpfs authored Jun 21, 2024
1 parent 348e020 commit 8686c0a
Show file tree
Hide file tree
Showing 183 changed files with 2,892 additions and 1,472 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,20 @@ jobs:
rustup update stable
rustup target add ${{ matrix.binary_target }}
# Build
- name: Build binaries
# Build client
- name: Build client binary
uses: actions-rs/cargo@v1
with:
command: build
args: --release --locked --target ${{ matrix.binary_target }}

# Build server
- name: Build server binary
uses: actions-rs/cargo@v1
with:
command: build
args: -p sos-server --release --locked --target ${{ matrix.binary_target }}

- name: Gather executables
shell: bash
run: |
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release Plz

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
target
*.bak
*.profraw
*.pem
*.deb
*.buildinfo
*.changes
Expand Down
889 changes: 889 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

Loading

0 comments on commit 8686c0a

Please sign in to comment.