mirror of
https://github.com/orhun/systeroid
synced 2024-10-01 21:23:31 +00:00
Merge branch 'main' into add_readme
This commit is contained in:
commit
ba83dd9188
42
.github/workflows/cd.yml
vendored
42
.github/workflows/cd.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
TOOLCHAIN: [stable]
|
||||
TOOLCHAIN: [nightly]
|
||||
CONFIG:
|
||||
- { TARGET: x86_64-unknown-linux-gnu, FEATURES: "" }
|
||||
- { TARGET: x86_64-unknown-linux-musl, FEATURES: "" }
|
||||
|
@ -150,14 +150,40 @@ jobs:
|
|||
--allow-unauthenticated \
|
||||
libxcb-shape0-dev \
|
||||
libxcb-xfixes0-dev \
|
||||
libxkbcommon-dev \
|
||||
musl-tools
|
||||
libxkbcommon-dev
|
||||
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@master
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Publish
|
||||
uses: actions-rs/cargo@v1
|
||||
- name: Set the release version
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
command: publish
|
||||
args: --locked --token ${{ secrets.CARGO_TOKEN }}
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
|
||||
- name: Publish the core library
|
||||
run: |
|
||||
cargo publish \
|
||||
--manifest-path systeroid-core/Cargo.toml \
|
||||
--locked \
|
||||
--token ${{ secrets.CARGO_TOKEN }}
|
||||
|
||||
- name: Wait for core library to be discoverable
|
||||
shell: bash
|
||||
run: |
|
||||
crate_status="https://raw.githubusercontent.com/rust-lang/crates.io-index/master/sy/st/systeroid-core"
|
||||
until curl -s "$crate_status" | grep -q '"vers":"${{ env.RELEASE_VERSION }}"'; do sleep 5; done;
|
||||
|
||||
- name: Publish the binaries
|
||||
shell: bash
|
||||
run: |
|
||||
for bin in 'systeroid' 'systeroid-tui'; do
|
||||
cargo publish \
|
||||
--manifest-path "$bin/Cargo.toml" \
|
||||
--locked \
|
||||
--token ${{ secrets.CARGO_TOKEN }}
|
||||
done
|
||||
|
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -56,7 +56,6 @@ jobs:
|
|||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
use-cross: true
|
||||
command: build
|
||||
args: --locked --target ${{ matrix.TARGET }} --no-default-features
|
||||
|
||||
|
@ -124,7 +123,7 @@ jobs:
|
|||
mv cobertura.xml live-test-output.xml
|
||||
|
||||
- name: Upload reports to codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
name: code-coverage-report
|
||||
files: test-output.xml,live-test-output.xml
|
||||
|
|
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
|
@ -35,6 +35,11 @@ jobs:
|
|||
type=raw,value=latest
|
||||
type=semver,pattern={{version}}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
with:
|
||||
platforms: arm64
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
@ -68,6 +73,7 @@ jobs:
|
|||
with:
|
||||
context: ./
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
builder: ${{ steps.buildx.outputs.name }}
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
|
|
6
Cargo.lock
generated
6
Cargo.lock
generated
|
@ -716,7 +716,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "systeroid"
|
||||
version = "0.1.0"
|
||||
version = "0.1.0-rc.1"
|
||||
dependencies = [
|
||||
"getopts",
|
||||
"systeroid-core",
|
||||
|
@ -724,7 +724,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "systeroid-core"
|
||||
version = "0.1.0"
|
||||
version = "0.1.0-rc.1"
|
||||
dependencies = [
|
||||
"colored",
|
||||
"dirs-next",
|
||||
|
@ -739,7 +739,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "systeroid-tui"
|
||||
version = "0.1.0"
|
||||
version = "0.1.0-rc.1"
|
||||
dependencies = [
|
||||
"colorsys",
|
||||
"copypasta-ext",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "systeroid-core"
|
||||
version = "0.1.0" # managed by release.sh
|
||||
version = "0.1.0-rc.1" # managed by release.sh
|
||||
description = "Core library of systeroid"
|
||||
authors = ["Orhun Parmaksız <orhunparmaksiz@gmail.com>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "systeroid-tui"
|
||||
version = "0.1.0" # managed by release.sh
|
||||
version = "0.1.0-rc.1" # managed by release.sh
|
||||
description = "A terminal user interface for managing kernel parameters"
|
||||
authors = ["Orhun Parmaksız <orhunparmaksiz@gmail.com>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
@ -26,7 +26,7 @@ copypasta-ext = { version = "0.3.7", optional = true }
|
|||
colorsys = "0.6.5"
|
||||
|
||||
[dependencies.systeroid-core]
|
||||
version = "0.1.0" # managed by release.sh
|
||||
version = "0.1.0-rc.1" # managed by release.sh
|
||||
path = "../systeroid-core"
|
||||
|
||||
[dependencies.tui]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "systeroid"
|
||||
version = "0.1.0" # managed by release.sh
|
||||
version = "0.1.0-rc.1" # managed by release.sh
|
||||
description = "A more powerful alternative to sysctl"
|
||||
authors = ["Orhun Parmaksız <orhunparmaksiz@gmail.com>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
@ -21,5 +21,5 @@ live-tests = []
|
|||
getopts = "0.2.21"
|
||||
|
||||
[dependencies.systeroid-core]
|
||||
version = "0.1.0" # managed by release.sh
|
||||
version = "0.1.0-rc.1" # managed by release.sh
|
||||
path = "../systeroid-core"
|
||||
|
|
Loading…
Reference in a new issue