Skip to content

Commit 16fc07e

Browse files
authored
Merge branch 'master' into print-cwd
2 parents 3c55789 + 31f31a7 commit 16fc07e

File tree

15 files changed

+827
-229
lines changed

15 files changed

+827
-229
lines changed

.github/bors.toml

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

.github/workflows/ci.yml

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
on:
22
push:
3-
branches: [ staging, trying, master ]
3+
branches: [ master ]
44
pull_request:
5+
merge_group:
56

67
name: Continuous integration
78

@@ -14,7 +15,7 @@ jobs:
1415
matrix:
1516
rust:
1617
# MSRV
17-
- 1.60.0
18+
- "1.70.0"
1819
- stable
1920
os: [ubuntu-latest, macos-latest, windows-latest]
2021
experimental: [false]
@@ -24,54 +25,50 @@ jobs:
2425
experimental: true
2526

2627
steps:
27-
- uses: actions/checkout@v2
28-
- uses: actions-rs/toolchain@v1
29-
with:
30-
profile: minimal
31-
toolchain: ${{ matrix.rust }}
32-
override: true
33-
components: llvm-tools-preview
28+
- uses: actions/checkout@v4
29+
- name: Setup Rust
30+
shell: bash
31+
run: |
32+
rustup toolchain install ${{ matrix.rust }} --profile minimal
33+
rustup default ${{ matrix.rust }}
34+
rustup component add llvm-tools clippy rustfmt
35+
echo "::add-matcher::.github/workflows/rust.json"
36+
37+
- name: Clippy
38+
run: cargo clippy -- -D warnings
39+
40+
- name: rustfmt
41+
run: cargo fmt --all -- --check
3442

3543
- name: Build and install cargo-binutils
36-
uses: actions-rs/cargo@v1
37-
with:
38-
command: install
39-
args: --path . -f
44+
if: matrix.rust == 'stable'
45+
run: cargo install --path . -f
46+
47+
- name: Build and install cargo-binutils (--locked)
48+
if: matrix.rust != 'stable'
49+
run: cargo install --locked --path . -f
4050

4151
- name: Run cargo-nm
42-
uses: actions-rs/cargo@v1
43-
with:
44-
command: nm
45-
args: --bin cargo-nm -- --undefined-only
52+
run: cargo nm --bin cargo-nm -- --undefined-only
4653

4754
- name: Run cargo-objdump
48-
uses: actions-rs/cargo@v1
49-
with:
50-
command: objdump
51-
args: --bin cargo-objdump -- -h
55+
run: cargo objdump --bin cargo-objdump -- -h
5256

5357
- name: Run cargo-objcopy (on Linux only)
5458
if: matrix.os == 'ubuntu-latest'
55-
uses: actions-rs/cargo@v1
56-
with:
57-
command: objcopy
58-
args: --bin cargo-objdump -v -- -O binary objdump.bin
59+
run: cargo objcopy --bin cargo-objdump -v -- -O binary objdump.bin
5960

6061
- name: Run cargo-size
61-
uses: actions-rs/cargo@v1
62-
with:
63-
command: size
64-
args: --bin cargo-size -v
62+
run: cargo size --bin cargo-size -v
6563

6664
- name: Run cargo-strip (on Linux only)
6765
if: matrix.os == 'ubuntu-latest'
68-
uses: actions-rs/cargo@v1
69-
with:
70-
command: strip
71-
args: --bin cargo-strip -v
66+
run: cargo strip --bin cargo-strip -v
67+
7268
conclusion:
7369
runs-on: ubuntu-latest
7470
needs: ci
71+
if: always()
7572
steps:
76-
- name: Result
77-
run: exit 0
73+
- name: Done
74+
run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

.github/workflows/clippy.yml

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

.github/workflows/release.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,16 @@ jobs:
1818
- { target: x86_64-pc-windows-msvc, os: windows-latest, suffix: .zip }
1919
runs-on: ${{ matrix.os }}
2020
steps:
21-
- uses: actions/checkout@v3
22-
- uses: actions-rs/toolchain@v1
23-
with:
24-
toolchain: stable
25-
profile: minimal
26-
target: ${{ matrix.target }}
27-
override: true
21+
- uses: actions/checkout@v4
22+
- name: Setup Rust
23+
shell: bash
24+
run: |
25+
rustup toolchain install stable --profile minimal --target ${{ matrix.target }}
26+
rustup default stable
27+
echo "::add-matcher::.github/workflows/rust.json"
2828
- name: Cache Dependencies
29-
uses: Swatinem/rust-cache@v1
30-
with:
31-
key: ${{ matrix.target }}
32-
- uses: actions-rs/cargo@v1
33-
with:
34-
command: build
35-
args: --target ${{ matrix.target }} --release
29+
uses: Swatinem/rust-cache@v2
30+
- run: cargo build --target ${{ matrix.target }} --release
3631

3732
- name: (Not Windows) Move executables and compress
3833
if: ${{ matrix.os != 'windows-latest' }}
@@ -53,7 +48,7 @@ jobs:
5348
}
5449
Compress-Archive -Path ${{ matrix.target }} -DestinationPath ${{ matrix.target }}.zip
5550
56-
- uses: actions/upload-artifact@v3
51+
- uses: actions/upload-artifact@v4
5752
with:
5853
name: ${{ matrix.target }}
5954
path: ${{ matrix.target }}${{ matrix.suffix }}
@@ -63,8 +58,8 @@ jobs:
6358
runs-on: ubuntu-latest
6459
needs: [build]
6560
steps:
66-
- uses: actions/checkout@v3
67-
- uses: actions/download-artifact@v3
61+
- uses: actions/checkout@v4
62+
- uses: actions/download-artifact@v4
6863
with:
6964
path: artifacts
7065
- run: ls -R ./artifacts
@@ -73,11 +68,11 @@ jobs:
7368
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
7469

7570
- id: changelog-reader
76-
uses: mindsers/changelog-reader-action@v2.0.0
71+
uses: mindsers/changelog-reader-action@v2.2.3
7772
with:
7873
version: ${{ (github.ref_type == 'tag' && github.ref_name) || 'Unreleased' }}
7974

80-
- uses: softprops/action-gh-release@v1
75+
- uses: softprops/action-gh-release@v2
8176
with:
8277
tag_name: ${{ steps.changelog-reader.outputs.version }}
8378
name: ${{ (github.ref_type == 'tag' && steps.changelog-reader.outputs.version) || format('Prereleased {0}', env.CURRENT_DATE) }}

.github/workflows/rust.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "rust",
5+
"pattern": [
6+
{
7+
"regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$",
8+
"severity": 1,
9+
"message": 4,
10+
"code": 3
11+
},
12+
{
13+
"regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$",
14+
"file": 2,
15+
"line": 3,
16+
"column": 4
17+
}
18+
]
19+
}
20+
]
21+
}

.github/workflows/rustfmt.yml

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

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
**/*.rs.bk
22
.#*
33
/target
4-
Cargo.lock

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Fixed metadata error when using `--manifest-path` outside of a project folder.
13+
14+
### Changed
15+
16+
- The `llvm-tools-preview` component was renamed to `llvm-tools`
17+
1018
### Changed
1119

12-
- MSRV Changed to 1.60
13-
- Bump `rust-cfg` to 0.5 and `cargo_metadata` to 0.15
20+
- MSRV Changed to 1.70.0
21+
- Bump `rust-cfg` to 0.5, `cargo_metadata` to 0.18, `clap` to 4 and `toml` to 0.8
1422

1523
### Fixed
1624

0 commit comments

Comments
 (0)