Skip to content

Commit 15691ec

Browse files
authored
Modernize lazy-static infra (#219)
1 parent 2660041 commit 15691ec

19 files changed

+178
-194
lines changed

.github/workflows/rust.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Rust
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
check:
13+
name: "Tests"
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
channel:
18+
- stable
19+
- beta
20+
- nightly
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
25+
26+
- name: Install Rust Toolchain
27+
run: rustup default ${{ matrix.channel }}
28+
29+
- name: Install cargo-hack
30+
run: cargo install cargo-hack
31+
32+
- name: Powerset
33+
run: cargo hack test --feature-powerset --lib
34+
35+
miri:
36+
name: "Miri"
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v3
40+
- name: Install Miri
41+
run: |
42+
rustup toolchain install nightly --component miri
43+
cargo +nightly miri setup
44+
- name: Default features
45+
run: cargo +nightly miri test
46+
47+
embedded:
48+
name: Build (embedded)
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: Checkout sources
52+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
53+
54+
- name: Install Rust toolchain
55+
run: |
56+
rustup default nightly
57+
rustup target add thumbv7em-none-eabi
58+
59+
- name: Default features
60+
run: cargo build -Z avoid-dev-deps --features spin_no_std --target thumbv7em-none-eabi

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ target
22
doc
33
Cargo.lock
44
.cargo
5+
wip

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

Cargo.toml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ documentation = "https://docs.rs/lazy_static"
1212
repository = "https://github.com/rust-lang-nursery/lazy-static.rs"
1313
keywords = ["macro", "lazy", "static"]
1414
categories = [ "no-std", "rust-patterns", "memory-management" ]
15-
exclude = ["/.travis.yml", "/appveyor.yml"]
15+
exclude = [".github"]
1616

1717
[dependencies.spin]
18-
version = "0.9.3"
18+
version = "0.9.8"
1919
default-features = false
2020
features = ["once"]
2121
optional = true
@@ -25,12 +25,4 @@ spin_no_std = ["spin"]
2525

2626
[dev-dependencies]
2727
doc-comment = "0.3.1"
28-
29-
[badges]
30-
appveyor = { repository = "rust-lang-nursery/lazy-static.rs" }
31-
travis-ci = { repository = "rust-lang-nursery/lazy-static.rs" }
32-
33-
is-it-maintained-issue-resolution = { repository = "rust-lang-nursery/lazy-static.rs" }
34-
is-it-maintained-open-issues = { repository = "rust-lang-nursery/lazy-static.rs" }
35-
36-
maintenance = { status = "passively-maintained" }
28+
trybuild = "1"

appveyor.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

compiletest/Cargo.toml

Lines changed: 0 additions & 11 deletions
This file was deleted.

compiletest/src/lib.rs

Lines changed: 0 additions & 11 deletions
This file was deleted.

compiletest/tests/compile-fail/README.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

compiletest/tests/compile-fail/incorrect_visibility_restriction.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

compiletest/tests/compile-fail/static_is_sized.rs

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)