Merge branch 'main' into add_readme

This commit is contained in:
Orhun Parmaksız 2022-04-15 00:14:52 +03:00
commit ba83dd9188
No known key found for this signature in database
GPG key ID: F83424824B3E4B90
7 changed files with 49 additions and 18 deletions

View file

@ -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

View file

@ -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

View file

@ -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
View file

@ -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",

View file

@ -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"

View file

@ -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]

View file

@ -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"