-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow, systemd feature, fix metadata (#30)
* ceviche-rs: add workflow, add feature for systemd-rs * ceviche-rs: bump version * ceviche-rs: fix metadata
- Loading branch information
1 parent
6c5c277
commit b12ae42
Showing
4 changed files
with
54 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['pc-windows-msvc', 'apple-darwin', 'unknown-linux-gnu'] | ||
arch: [x86_64, aarch64] | ||
include: | ||
- runner: ubuntu-latest | ||
os: unknown-linux-gnu | ||
- runner: windows-latest | ||
os: pc-windows-msvc | ||
- runner: macos-latest | ||
os: apple-darwin | ||
runs-on: ${{ matrix.runner }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Configure runner | ||
run: rustup target add ${{matrix.arch}}-${{matrix.os}} | ||
|
||
- name: Configure runner | ||
if: matrix.os == 'unknown-linux-gnu' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -o Acquire:retries=3 install libsystemd-dev | ||
- name: Build | ||
shell: pwsh | ||
run: cargo build --target ${{matrix.arch}}-${{matrix.os}} |
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,10 +1,10 @@ | ||
[package] | ||
name = "ceviche" | ||
version = "0.5.2" | ||
version = "0.6.0" | ||
edition = "2021" | ||
license = "MIT/Apache-2.0" | ||
homepage = "https://github.com/wayk/ceviche-rs" | ||
repository = "https://github.com/wayk/ceviche-rs" | ||
homepage = "https://github.com/devolutions/ceviche-rs" | ||
repository = "https://github.com/devolutions/ceviche-rs" | ||
authors = ["Marc-André Moreau <[email protected]>", "Sébastien Duquette <[email protected]>", "Richard Markiewicz <[email protected]>"] | ||
keywords = ["daemon", "service"] | ||
description = "Rust daemon/service wrapper" | ||
|
@@ -23,7 +23,7 @@ winapi = { version = "0.3", features = ["winbase", "winerror", "winuser", "winsv | |
widestring = "0.4.3" | ||
|
||
[target.'cfg(target_os = "linux")'.dependencies] | ||
systemd-rs = "^0.1.2" | ||
systemd-rs = { version="^0.1.2", optional = true } | ||
|
||
[target.'cfg(target_os = "macos")'.dependencies] | ||
core-foundation = "0.9" | ||
|
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 |
---|---|---|
|
@@ -3,8 +3,8 @@ name = "foobar_service" | |
version = "0.1.0" | ||
edition = "2021" | ||
license = "MIT/Apache-2.0" | ||
homepage = "https://github.com/wayk/ceviche-rs" | ||
repository = "https://github.com/wayk/ceviche-rs" | ||
homepage = "https://github.com/devolutions/ceviche-rs" | ||
repository = "https://github.com/devolutions/ceviche-rs" | ||
authors = ["Marc-André Moreau <[email protected]>"] | ||
keywords = ["daemon", "service"] | ||
description = "Rust daemon/service wrapper" | ||
|
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