Skip to content

Commit

Permalink
v1.0.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Oct 25, 2024
1 parent 6187afd commit becd75d
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 70 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
push:
branches: [ master ]
pull_request:
merge_group:

name: Build check

jobs:
# We check that the crate builds and links for all the toolchains and targets.
build:
strategy:
matrix:
# All generated code should be running on stable now, MRSV is 1.58.0
toolchain:
- stable
- nightly
- 1.58.0
target:
- riscv32imac-unknown-none-elf
- riscv64gc-unknown-none-elf
- thumbv6m-none-eabi
- thumbv7m-none-eabi
- thumbv8m.main-none-eabi
- x86_64-unknown-linux-gnu
include:
# Nightly is only for reference and allowed to fail
- toolchain: nightly
experimental: true

runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental || false }}
steps:
- uses: actions/checkout@v4
- name: Update Rust toolchain
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Install Rust target
if: matrix.target != 'x86_64-unknown-linux-gnu'
run: rustup target install ${{ matrix.target }}
- name: Build (debug)
run: cargo build --target ${{ matrix.target }}
- name: Build (release)
run: cargo build --release --target ${{ matrix.target }}
49 changes: 0 additions & 49 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

* Bump MSRV to 1.58.0
* Removed atomic fences in loop
* Adapted CI to GH actions

## v0.2.0 - 2018-09-09

* Removed `#[panic_handler]` as it is no longer needed in latest nightly.
Expand Down
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ keywords = ["panic-handler", "panic", "halt"]
license = "MIT OR Apache-2.0"
name = "panic-halt"
repository = "https://github.com/korken89/panic-halt"
version = "0.2.0"
version = "1.0.0-rc1"
readme = "README.md"
edition = "2021"
rust-version = "1.58.0"
9 changes: 0 additions & 9 deletions ci/install.sh

This file was deleted.

7 changes: 0 additions & 7 deletions ci/script.sh

This file was deleted.

5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@
#![no_std]

use core::panic::PanicInfo;
use core::sync::atomic::{self, Ordering};

#[inline(never)]
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {
atomic::compiler_fence(Ordering::SeqCst);
}
loop {}
}

0 comments on commit becd75d

Please sign in to comment.