Prepare for a release

This commit is contained in:
Nicolas Stalder
2021-01-31 14:20:55 +01:00
parent a70acb24fa
commit dac16c41d3
4 changed files with 59 additions and 50 deletions
-40
View File
@@ -1,40 +0,0 @@
image: archlinux
packages:
- arm-none-eabi-gcc
- arm-none-eabi-newlib
- clang
- lib32-glibc
- sccache-bin
sources:
- https://github.com/nickray/littlefs2
tasks:
- rust: |
curl -sSf https://sh.rustup.rs | sh -s -- -y -q
echo 'export RUSTC_WRAPPER=/usr/bin/sccache' >> $HOME/.cargo/env
echo 'export RUSTFLAGS="-D warnings"' >> $HOME/.cargo/env
source $HOME/.cargo/env
rustup target add thumbv7em-none-eabi
- build-thumb: |
cd littlefs2
source $HOME/.cargo/env
cargo build --target thumbv7em-none-eabi
cargo build --target thumbv7em-none-eabi --release
- build-desktop: |
cd littlefs2
source $HOME/.cargo/env
cargo build
cargo build --release
- test-desktop: |
cd littlefs2
source $HOME/.cargo/env
cargo test
cargo test --features ui-tests
cargo test --release
cargo test --features ui-tests --release
+50
View File
@@ -0,0 +1,50 @@
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- thumbv7em-none-eabi
- x86_64-unknown-linux-gnu
steps:
- name: Install build dependencies
shell: bash
run: |
env && pwd && sudo apt-get update -y -qq && sudo apt-get install -y -qq llvm libc6-dev-i386 libclang-dev
- uses: fiam/arm-none-eabi-gcc@v1
with:
release: "9-2020-q2"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
override: true
components: llvm-tools-preview
- uses: actions/checkout@v2
- name: Build
run: cargo build --release --verbose
- name: Run tests
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: >
cargo test &&
cargo test --features ui-tests &&
cargo test --release &&
cargo test --release --features ui-tests
- name: Build Documentation
run: cargo doc --no-deps
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
+6 -7
View File
@@ -1,7 +1,7 @@
[package]
name = "littlefs2"
description = "Idiomatic Rust API for littlefs"
version = "0.1.0-alpha.1"
version = "0.1.0"
authors = ["Nicolas Stalder <n@stalder.io>", "Brandon Edens <brandonedens@gmail.com>"]
edition = "2018"
license = "Apache-2.0 OR MIT"
@@ -10,12 +10,11 @@ categories = ["embedded", "filesystem", "no-std"]
repository = "https://github.com/nickray/littlefs2"
[dependencies]
# aligned = { version = "0.3.2", optional = true }
bitflags = "1.0.4"
# cortex-m-semihosting = "0.3.5"
cty = "0.2.1"
# can't currently bump because https://github.com/japaric/heapless/issues/166
generic-array = "0.13.2"
heapless = "0.5.4"
heapless = "0.5.6"
# heapless-bytes = { path = "../heapless-bytes", optional = true }
# Listed as regular dependency behind feature flag,
@@ -44,13 +43,13 @@ default-features = false
# older version of `cstr_core` that depends on version of "1" of `memchr`. This
# way the bug won't enable the "std" of `memchr` "1" (because `memchr` "1" and
# `memchr` "2" are considered different crates)
version = "=0.1.0"
version = "=0.1.2"
[dependencies.littlefs2-sys]
version = "0.1.5"
version = "0.1.6"
[dependencies.serde]
version = "1.0"
version = "1"
default-features = false
features = ["derive"]
optional = true
+3 -3
View File
@@ -19,9 +19,9 @@
alt="API docs" />
</a>
<!-- Continuous build -->
<a href="https://builds.sr.ht/~nickray/littlefs2">
<img src="https://builds.sr.ht/~nickray/littlefs2.svg"
alt="CI" />
<a href="https://github.com/nickray/littlefs2/actions?query=branch%3Amain">
<img src="https://img.shields.io/github/workflow/status/nickray/littlefs2/CI/main?style=for-the-badge"
alt="CI" height="20"/>
</a>
</div>