Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 17 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Pull Request Workflow"
on:
pull_request:
# The specific activity types are listed here to include "labeled" and "unlabeled"
# (which are not included by default for the "pull_request" trigger).
# This is needed to allow skipping enforcement of the changelog in PRs with specific labels,
# as defined in the (optional) "skipLabels" property.
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
# Enforces the update of a changelog file on every pull request
changelog:
runs-on: ubuntu-latest
steps:
# The checkout step is needed since the enforcer relies on local git commands
- uses: actions/checkout@v2
- uses: dangoslen/changelog-enforcer@v2
80 changes: 75 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,87 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
readme:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./hyperloop

steps:
- uses: actions/checkout@v2
- uses: actions-rs/install@v0.1
with:
crate: cargo-readme
version: latest
use-tool-cache: true
- name: Readme
run: cargo readme > ../README.md && git diff --exit-code

format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Format
run: cargo fmt --all -- --check

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cd hyperloop && cargo build --verbose

build-std-example:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
run: cd examples/std && cargo build --verbose

build-stm32f03-example:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: thumbv7m-none-eabi

- name: Build
run: cd examples/stm32f103 && cargo build --verbose

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
run: cd hyperloop && cargo test --verbose --all-features

loom:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Loom tests
run: RUSTFLAGS="--cfg loom" cargo test --release tests_loom
run: cd hyperloop && RUSTFLAGS="--cfg loom" cargo test --release tests_loom

miri:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: miri
- name: Miri tests
run: cd hyperloop && cargo miri test --verbose --all-features
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- First release
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[workspace]
resolver = "2"

members = [
"examples/std",
"examples/stm32f103",
"hyperloop",
"hyperloop-macros",
"hyperloop-priority-queue",
]
Loading