Skip to content

Commit

Permalink
Feat: CI now runs same workloads on windows
Browse files Browse the repository at this point in the history
Feat: CI now runs same workloads on macos
  • Loading branch information
448-OG committed Aug 14, 2023
1 parent 4313f9f commit 02befaa
Showing 1 changed file with 75 additions and 1 deletion.
76 changes: 75 additions & 1 deletion .github/workflows/rust.yml
Expand Up @@ -10,7 +10,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
build_ubuntu:

runs-on: ubuntu-latest

Expand Down Expand Up @@ -46,3 +46,77 @@ jobs:

- name: Run `simple.rs` example with default features
run: cargo run --example simple

build_windows:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build
- name: Build with all features
run: cargo build --all-features
- name: Run build with `random` feature enabled
run: cargo build --no-default-features --features random --verbose
- name: Run build with `clonable_mem` feature enabled
run: cargo build --no-default-features --features clonable_mem --verbose
- name: Run build with `encryption` feature enabled
run: cargo build --no-default-features --features encryption --verbose
- name: Run build with `symm_asymm` feature enabled
run: cargo build --no-default-features --features symm_asymm --verbose
- name: Run build with `full` feature enabled
run: cargo build --no-default-features --features full --verbose
- name: Run tests with all features
run: cargo test --all-features --verbose

- name: Install cargo-deny
run: cargo install cargo-deny
- name: Check licenses are correct
run: cargo deny check licenses

- name: Run `simple.rs` example with no default features
run: cargo run --example simple --no-default-features --features "encryption ed25519 x25519"

- name: Run `simple.rs` example with features set to `full`
run: cargo run --example simple --no-default-features --features full

- name: Run `simple.rs` example with default features
run: cargo run --example simple

build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build
- name: Build with all features
run: cargo build --all-features
- name: Run build with `random` feature enabled
run: cargo build --no-default-features --features random --verbose
- name: Run build with `clonable_mem` feature enabled
run: cargo build --no-default-features --features clonable_mem --verbose
- name: Run build with `encryption` feature enabled
run: cargo build --no-default-features --features encryption --verbose
- name: Run build with `symm_asymm` feature enabled
run: cargo build --no-default-features --features symm_asymm --verbose
- name: Run build with `full` feature enabled
run: cargo build --no-default-features --features full --verbose
- name: Run tests with all features
run: cargo test --all-features --verbose

- name: Install cargo-deny
run: cargo install cargo-deny
- name: Check licenses are correct
run: cargo deny check licenses

- name: Run `simple.rs` example with no default features
run: cargo run --example simple --no-default-features --features "encryption ed25519 x25519"

- name: Run `simple.rs` example with features set to `full`
run: cargo run --example simple --no-default-features --features full

- name: Run `simple.rs` example with default features
run: cargo run --example simple

0 comments on commit 02befaa

Please sign in to comment.