Skip to content

Commit de4de93

Browse files
committed
build: set version to 0.12.0; update CI workflow to 1.70; update to cache v4
1 parent 887517f commit de4de93

3 files changed

Lines changed: 27 additions & 27 deletions

File tree

.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.70.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

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["m4b <m4b.github.io@gmail.com>"]
33
name = "bingrep"
4-
version = "0.11.0"
4+
version = "0.12.0"
55
edition = "2021"
66
rust-version = "1.70.0"
77
keywords = ["binary", "elf", "mach", "pe", "cross-platform"]

0 commit comments

Comments
 (0)