Skip to content

Commit 5fd3549

Browse files
authored
build: update to metagoblin 10; remove atty dep (#44)
* build: set version to 0.12.0; update MSRV and CI workflow to 1.74; update to cache v4; add color feature to env_logger * build: cargo fmt Still using edition to 2021 and rust version to 1.74; we'll bounce to new edition with latest goblin, which requires scroll 0.13, and edition 2024, and that will make a good 0.13 release.
1 parent d38de02 commit 5fd3549

File tree

9 files changed

+381
-325
lines changed

9 files changed

+381
-325
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: CI
22
on:
33
push:
44
pull_request:
5-
branches:
6-
- master
5+
branches:
6+
- master
77

88
jobs:
99
test:
@@ -15,7 +15,7 @@ jobs:
1515
include:
1616
- build: MSRV # Minimum supported Rust version
1717
os: ubuntu-latest
18-
rust: 1.64.0
18+
rust: 1.74.0
1919
- build: stable
2020
os: ubuntu-latest
2121
rust: stable
@@ -34,25 +34,25 @@ jobs:
3434
env:
3535
CARGO_TARGET_DIR: ${{ github.workspace }}/target
3636
steps:
37-
- uses: actions/checkout@master
38-
- name: Cache CARGO_HOME
39-
uses: actions/cache@v1
40-
with:
41-
path: ~/.cargo
42-
key: ${{ runner.os }}-cargo-home-${{ hashFiles('**/Cargo.toml') }}
43-
restore-keys: ${{ runner.os }}-cargo-home
44-
- name: Install Rust
45-
shell: bash
46-
run: |
47-
curl -sSL https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain=none
48-
export PATH="$HOME/.cargo/bin:$PATH"
49-
rustup override set ${{ matrix.rust }}
50-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
51-
- name: rustfmt
52-
shell: bash
53-
if: runner.os == 'Linux' && matrix.rust == 'stable'
54-
run: |
55-
rustup component add rustfmt
56-
cargo fmt -- --check
57-
- run: cargo build
58-
- run: cargo build --all-targets
37+
- uses: actions/checkout@master
38+
- name: Cache CARGO_HOME
39+
uses: actions/cache@v4
40+
with:
41+
path: ~/.cargo
42+
key: ${{ runner.os }}-cargo-home-${{ hashFiles('**/Cargo.toml') }}
43+
restore-keys: ${{ runner.os }}-cargo-home
44+
- name: Install Rust
45+
shell: bash
46+
run: |
47+
curl -sSL https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain=none
48+
export PATH="$HOME/.cargo/bin:$PATH"
49+
rustup override set ${{ matrix.rust }}
50+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
51+
- name: rustfmt
52+
shell: bash
53+
if: runner.os == 'Linux' && matrix.rust == 'stable'
54+
run: |
55+
rustup component add rustfmt
56+
cargo fmt -- --check
57+
- run: cargo build --verbose
58+
- run: cargo build --all-targets

0 commit comments

Comments
 (0)