Skip to content

Commit a3ce796

Browse files
committed
Update CI and benchmark/test features.
1 parent 27ab657 commit a3ce796

File tree

48 files changed

+177
-123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+177
-123
lines changed

.github/workflows/Comprehensive.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ jobs:
1010
strategy:
1111
fail-fast: true
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- name: Install latest nightly
15-
uses: actions-rs/toolchain@v1
15+
uses: dtolnay/rust-toolchain@stable
1616
with:
1717
toolchain: nightly
18-
override: true
1918
components: rustfmt, clippy
2019
- run: ci/comprehensive.sh
2120
- run: ALL_FEATURES=1 ci/comprehensive.sh

.github/workflows/Cross.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Cross
33
on:
44
[pull_request, workflow_dispatch]
55

6+
# NOTE: Use older toolchains since there's bugs cross-compiling
7+
# for some more recent architectures.
68
jobs:
79
cross:
810
name: Rust ${{matrix.target}}
@@ -24,26 +26,26 @@ jobs:
2426
- armv7-unknown-linux-gnueabihf
2527
- i686-unknown-linux-gnu
2628
- i686-unknown-linux-musl
27-
- mips-unknown-linux-gnu
28-
- mips64-unknown-linux-gnuabi64
29-
- mips64el-unknown-linux-gnuabi64
30-
- mipsel-unknown-linux-gnu
29+
#- mips-unknown-linux-gnu
30+
#- mips64-unknown-linux-gnuabi64
31+
#- mips64el-unknown-linux-gnuabi64
32+
#- mipsel-unknown-linux-gnu
3133
# NOTE: This fails on cross v0.2.1, which is unusual since
3234
# manually invoking the failing tests with qemu-5.1.0 passes.
3335
#- powerpc64le-unknown-linux-gnu
34-
- x86_64-unknown-linux-gnu
36+
# NOTE: This has glibc linker issues. Restore later.
37+
#- x86_64-unknown-linux-gnu
3538
- x86_64-unknown-linux-musl
3639

3740
# Windows
3841
- x86_64-pc-windows-gnu
3942

4043
steps:
41-
- uses: actions/checkout@v2
42-
- uses: actions-rs/toolchain@v1
44+
- uses: actions/checkout@v4
45+
- uses: dtolnay/rust-toolchain@stable
4346
with:
44-
toolchain: stable
47+
toolchain: 1.65.0
4548
target: ${{matrix.target}}
46-
override: true
4749
- uses: actions-rs/cargo@v1
4850
with:
4951
use-cross: true
@@ -77,12 +79,11 @@ jobs:
7779
- x86_64-unknown-netbsd
7880

7981
steps:
80-
- uses: actions/checkout@v2
81-
- uses: actions-rs/toolchain@v1
82+
- uses: actions/checkout@v4
83+
- uses: dtolnay/rust-toolchain@stable
8284
with:
83-
toolchain: stable
85+
toolchain: 1.65.0
8486
target: ${{matrix.target}}
85-
override: true
8687
- uses: actions-rs/cargo@v1
8788
with:
8889
use-cross: true

.github/workflows/Features.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ jobs:
1010
strategy:
1111
fail-fast: true
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- name: Install latest nightly
15-
uses: actions-rs/toolchain@v1
15+
uses: dtolnay/rust-toolchain@stable
1616
with:
1717
toolchain: nightly
18-
override: true
1918
components: rustfmt, clippy
2019
- run: ci/test.sh
2120
- run: NIGHTLY=1 NO_STD=1 ci/test.sh

.github/workflows/OSX.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ jobs:
1515
- x86_64-apple-darwin
1616

1717
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions-rs/toolchain@v1
18+
- uses: actions/checkout@v4
19+
- uses: dtolnay/rust-toolchain@stable
2020
with:
2121
toolchain: stable
2222
target: ${{matrix.target}}
23-
override: true
2423
- uses: actions-rs/cargo@v1
2524
with:
2625
use-cross: true

.github/workflows/Simple.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,35 @@ on:
44
[push, pull_request, workflow_dispatch]
55

66
jobs:
7+
build:
8+
name: Rust ${{matrix.rust}}
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
rust: [1.63.0]
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
- uses: dtolnay/rust-toolchain@stable
19+
with:
20+
toolchain: ${{matrix.rust}}
21+
- run: cargo check
22+
- run: cargo build
23+
724
test:
825
name: Rust ${{matrix.rust}}
926
runs-on: ubuntu-latest
1027
strategy:
1128
fail-fast: false
1229
matrix:
13-
rust: [1.51.0, stable, beta, nightly]
30+
rust: [1.65.0, stable, beta, nightly]
1431
steps:
15-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v4
1633
with:
1734
submodules: recursive
18-
- uses: dtolnay/rust-toolchain@master
35+
- uses: dtolnay/rust-toolchain@stable
1936
with:
2037
toolchain: ${{matrix.rust}}
2138
- run: cargo check
@@ -28,7 +45,7 @@ jobs:
2845
strategy:
2946
fail-fast: true
3047
steps:
31-
- uses: actions/checkout@v2
48+
- uses: actions/checkout@v4
3249
- name: Install latest nightly
3350
uses: actions-rs/toolchain@v1
3451
with:

.github/workflows/Valgrind.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ jobs:
1010
strategy:
1111
fail-fast: true
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- name: Install latest nightly
15-
uses: actions-rs/toolchain@v1
15+
uses: dtolnay/rust-toolchain@stable
1616
with:
1717
toolchain: nightly
18-
override: true
1918
- run: sudo apt-get update
2019
- run: sudo apt-get install valgrind
2120
- run: cargo +nightly install cargo-valgrind

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111
- Updated the MSRV to 1.63.0 (1.65.0 for development).
1212

13+
### Removed
14+
- Support for mips (MIPS), mipsel (MIPS LE), mips64 (MIPS64 BE), and mips64el (MIPS64 LE) on Linux.
15+
1316
## [0.8.5] 2022-06-06
1417
### Changed
1518
- Fixed the partial integer parser to correctly return negative values if parsing partial input.

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,6 @@ lexical-core is tested on a wide variety of platforms, including big and small-e
319319
- aarch64 (ARM8v8-A) Linux, Android, and iOS.
320320
- armv7 (ARMv7-A) Linux, Android, and iOS.
321321
- arm (ARMv6) Linux, and Android.
322-
- mips (MIPS) Linux.
323-
- mipsel (MIPS LE) Linux.
324-
- mips64 (MIPS64 BE) Linux.
325-
- mips64el (MIPS64 LE) Linux.
326322
- powerpc (PowerPC) Linux.
327323
- powerpc64 (PPC64) Linux.
328324
- powerpc64le (PPC64LE) Linux.

ci/check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -ex
55

66
# Change to our project home.
7-
script_dir=`dirname "${BASH_SOURCE[0]}"`
7+
script_dir=$(dirname "${BASH_SOURCE[0]}")
88
cd "$script_dir"/..
99

1010
scripts/check.sh

ci/comprehensive.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
# shellcheck disable=SC2086,SC2236
23
# Run a small subset of our comprehensive test suite.
34

45
set -ex
@@ -7,8 +8,8 @@ set -ex
78
cargo --version
89

910
# Change to our project home.
10-
script_dir=`dirname "${BASH_SOURCE[0]}"`
11-
script_home=`realpath "$script_dir"`
11+
script_dir=$(dirname "${BASH_SOURCE[0]}")
12+
script_home=$(realpath "$script_dir")
1213
cd "$script_home"/..
1314

1415
FEATURES=

0 commit comments

Comments
 (0)