Skip to content

Commit

Permalink
Basic CI and MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamschi committed Nov 21, 2024
1 parent f50cdc6 commit 84f3dc2
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 11 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Rudimentary workflows adapted from <https://doc.rust-lang.org/cargo/guide/continuous-integration.html#verifying-rust-version>.

name: Cargo Build & Test

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose --features _test
latest_deps:
name: Latest Dependencies
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: cargo update --verbose
- run: cargo build --verbose
- run: cargo test --verbose --features _test
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --rust-version --workspace --all-targets --features _test
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions flourish/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "flourish"
# version
version = "0.1.0"
authors = ["Tamme Schichler <[email protected]>"]
edition = "2021"
rust-version = "1.82"
rust-version = "1.76"
description = "Convenient and full-featured signals for Rust."
# documentation intentionally defaulted.
readme = true
Expand All @@ -19,8 +19,6 @@ features = "_doc"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

#TODO Badges, meta data

[features]
global_signals_runtime = ["isoprenoid/global_signals_runtime"] # Implements `SignalsRuntimeRef` for `GlobalSignalsRuntime`.
_test = ["global_signals_runtime", "_doc"] # Internal testing feature.
Expand All @@ -29,6 +27,6 @@ _doc = ["global_signals_runtime"] # Internal documentation feature.
[dependencies]
async-lock = { version = "3.4.0", default-features = false }
futures-lite = { version = "2.3.0", default-features = false, features = ["alloc"] }
isoprenoid = { path = "../isoprenoid" }
isoprenoid = { version = "0.1.0", path = "../isoprenoid" }
pin-project = "1.1.5"
tap = { version = "1.0.1", default-features = false }
6 changes: 2 additions & 4 deletions isoprenoid/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "isoprenoid"
# version
version = "0.1.0"
authors = ["Tamme Schichler <[email protected]>"]
edition = "2021"
rust-version = "1.82"
rust-version = "1.70"
description = "isoprenoid is the signals runtime framework backing flourish."
# documentation intentionally defaulted.
readme = true
Expand All @@ -19,8 +19,6 @@ features = "_doc"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

#TODO Badges, meta data

[features]
# Implements `SignalsRuntimeRef` for `GlobalSignalsRuntime`.
global_signals_runtime = [
Expand Down

0 comments on commit 84f3dc2

Please sign in to comment.