1
0
forked from ROMEO/nexosim

First public commit

This commit is contained in:
Serge Barral
2022-10-12 05:33:16 +02:00
commit 5c94ec6a65
34 changed files with 5893 additions and 0 deletions

124
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,124 @@
name: CI
on:
pull_request:
push:
branches: [ main ]
# Uncomment before first release.
#env:
# RUSTFLAGS: -Dwarnings
jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- stable
- 1.64.0
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --benches
test:
name: Test suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --release
loom-dry-run:
name: Loom dry run
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Dry-run cargo test (Loom)
uses: actions-rs/cargo@v1
with:
command: test
args: --no-run --tests
env:
RUSTFLAGS: --cfg asynchronix_loom
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: default
override: true
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run cargo doc
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --document-private-items

34
.github/workflows/loom.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Loom
on:
pull_request:
push:
branches: [ main ]
paths:
- 'asynchronix/src/runtime/executor/queue.rs'
- 'asynchronix/src/runtime/executor/queue/**'
- 'asynchronix/src/runtime/executor/task.rs'
- 'asynchronix/src/runtime/executor/task/**'
jobs:
loom:
name: Loom
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run cargo test (Loom)
uses: actions-rs/cargo@v1
with:
command: test
args: --tests --release
env:
RUSTFLAGS: --cfg asynchronix_loom