Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update URLs & readme #307

Merged
merged 27 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
67a86af
Fix journal cursor test failures
ALSchwalm Jan 11, 2024
6bcbff3
Update URLs & readme
codyps Apr 28, 2024
51833d4
cargo update
codyps May 2, 2024
c398445
fix warnings about unused returns from Box::from_raw() that we want t…
codyps May 2, 2024
12735f4
libsystemd-sys: remove unsafe code for handling bitfield, use endian …
codyps May 2, 2024
faaa536
Merge commit 'refs/pull/305/head' of github.com:jmesmon/rust-systemd …
codyps May 2, 2024
f0b2b13
fix: remove unused let
codyps May 2, 2024
ab9f7cc
fix: remove unused generic
codyps May 2, 2024
b6f1f50
cargo clippy --fix
codyps May 2, 2024
3e8b4bb
fix: suppress and fix clippy warnings
codyps May 2, 2024
4246968
bors-ng is dead, remove config
codyps May 2, 2024
75b7806
Cargo.toml: loosen memchr dep
codyps May 2, 2024
a0b08ff
add rust-version/msrv and check in github
codyps May 2, 2024
3115705
github actions: use rust-cache@v2
codyps May 2, 2024
a040a75
github actions: remove all actions-rs
codyps May 2, 2024
908c339
github actions: update ubuntu, update actions/checkout@v2 to v4
codyps May 2, 2024
2ac8340
github actions: fix indent, simplify if
codyps May 2, 2024
2065eb9
github actions: ${{}} in uses referencing the matrix makes gha unhappy
codyps May 2, 2024
cc9eb4b
libsystemd-sys: add rust-version
codyps May 2, 2024
3209087
example: avoid warning when disabled
codyps May 2, 2024
96dddb6
github actions: add clippy & rustfmt to check
codyps May 2, 2024
d3bee7d
fix journal test: do not rely on version specific behavior
codyps May 2, 2024
c66e0ee
fix: clippy
codyps May 2, 2024
bd59cc3
remove old 1.47.0 target
codyps May 2, 2024
f121152
github actions: install systemd for msrv
codyps May 2, 2024
eac5aca
github actions: remove unstable_doc_cfg from beta build
codyps May 2, 2024
cf79034
remove msrv, unclear we've got it right, so avoid setting
codyps May 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 36 additions & 80 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,124 +10,80 @@ name: build

jobs:
check:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@beta
with:
profile: minimal
toolchain: beta
override: true
components: rustfmt, clippy

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v1

- uses: Swatinem/rust-cache@v2
- name: apt-get update
run: sudo apt-get -o Acquire::Retries=3 update
- name: Install libsystemd-dev
run: sudo apt-get -o Acquire::Retries=3 install libsystemd-dev
- run: cargo fmt --all -- --check
- run: cargo clippy --all --all-targets --features serde,default,bus,systemd_v245,journal -- -D warnings

- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
features:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: beta
override: true

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v1

- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@beta
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
- name: apt-get update
run: sudo apt-get -o Acquire::Retries=3 update
- name: Install libsystemd-dev
run: sudo apt-get -o Acquire::Retries=3 install libsystemd-dev

- name: Install cargo-hack
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-hack

- name: Check with all variants
uses: actions-rs/cargo@v1
with:
command: hack
args: --feature-powerset --skip unstable-doc-cfg check --workspace --all-targets
run: cargo hack --feature-powerset --skip unstable-doc-cfg check --workspace --all-targets

test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
- 1.47.0

steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v1

uses: Swatinem/rust-cache@v2
- name: apt-get update
run: sudo apt-get -o Acquire::Retries=3 update
- name: Install libsystemd-dev
run: sudo apt-get -o Acquire::Retries=3 install libsystemd-dev

- name: Install cargo-hack
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-hack

- uses: taiki-e/install-action@cargo-hack
- name: Build everything
uses: actions-rs/cargo@v1
if: ${{matrix.rust != 'nightly' }}
with:
command: hack
args: --feature-powerset --skip unstable-doc-cfg build --all --all-targets
run: cargo hack --feature-powerset --skip unstable-doc-cfg build --all --all-targets
if: matrix.rust != 'nightly'

- name: Run all tests
uses: actions-rs/cargo@v1
if: ${{matrix.rust != 'nightly' }}
with:
command: hack
args: --feature-powerset --skip unstable-doc-cfg test --all
run: cargo hack --feature-powerset --skip unstable-doc-cfg test --all
if: matrix.rust != 'nightly'

- name: Build everything
uses: actions-rs/cargo@v1
if: ${{matrix.rust == 'nightly' }}
with:
command: hack
args: --feature-powerset build --all --all-targets
run: cargo hack --feature-powerset build --all --all-targets
if: matrix.rust == 'nightly'

- name: Run all tests
uses: actions-rs/cargo@v1
if: ${{matrix.rust == 'nightly' }}
with:
command: hack
args: --feature-powerset test --all
run: cargo hack --feature-powerset test --all
if: matrix.rust == 'nightly'
# msrv:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: apt-get update
# run: sudo apt-get -o Acquire::Retries=3 update
# - name: Install libsystemd-dev
# run: sudo apt-get -o Acquire::Retries=3 install libsystemd-dev
# - uses: taiki-e/install-action@cargo-hack
# - uses: Swatinem/rust-cache@v2
# - run: cargo hack check --rust-version --workspace --all-targets --ignore-private
Loading