Skip to content

Commit

Permalink
Add GitHub actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Jun 10, 2024
1 parent cf22274 commit d05b2b1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: cargo build
- name: Run tests
run: cargo test
- name: Build pure-rust
run: cargo build --features=pure-rust
- name: Run pure-rust tests
run: cargo test --features=pure-rust
- name: Build no-std
run: cargo build --no-default-features
- name: Run no-std tests
run: cargo test --no-default-features
- name: Build pure-rust no-std
run: cargo build --no-default-features --features=pure-rust
- name: Run pure-rust no-std tests
run: cargo test --no-default-features --features=pure-rust

0 comments on commit d05b2b1

Please sign in to comment.