Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SirCipher committed Jun 21, 2024
1 parent c8a7f0e commit c1e5d4d
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ on:

name: Continuous integration
env:
rust_version: '1.78.0'
msrv_version: '1.74.1'
latest_version: '1.78.0'

jobs:
test:
name: Test Suite
testlatest:
name: Test Latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -22,7 +23,25 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust_version }}
toolchain: ${{ env.latest_version }}
- uses: Swatinem/rust-cache@v2
- run: cargo test --all-features --workspace --lib --tests --profile "ci"

testmsrv:
name: Test MSRV
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-latest
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.msrv_version }}
- uses: Swatinem/rust-cache@v2
- run: cargo test --all-features --workspace --lib --tests --profile "ci"

Expand All @@ -34,7 +53,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust_version }}
toolchain: ${{ env.latest_version }}
- uses: Swatinem/rust-cache@v2
- name: Build Documentation
run: cargo doc --lib --no-deps --all-features --workspace
Expand All @@ -49,7 +68,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust_version }}
toolchain: ${{ env.latest_version }}
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
Expand All @@ -62,7 +81,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust_version }}
toolchain: ${{ env.latest_version }}
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-features --all-targets --workspace -- -D warnings
Expand All @@ -78,12 +97,12 @@ jobs:
uses: actions/checkout@v2

- name: Install Clang
run: apt-get update && apt-get install -y clang
run: apt-get update && apt-get install -y llvm llvm-dev clang

- name: Set libclang path
run: echo "LIBCLANG_PATH=$(llvm-config --libdir)" >> $GITHUB_ENV

- name: Generate code coverage
- name: Generate code coveragez
run: |
cargo +nightly tarpaulin --ignore-tests -o xml -t 600 --exclude-files example_apps swimos_form_derive swimos_agent_derive swimos_server_app --avoid-cfg-tarpaulin --profile "ci"
Expand Down

0 comments on commit c1e5d4d

Please sign in to comment.