Skip to content

Commit a34da19

Browse files
committed
try this
1 parent a358bd7 commit a34da19

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
workflow_dispatch:
1010

1111
env:
12+
BUILD_PROFILE: release
1213
CARGO_TARGET_DIR: target
1314
CARGO_INCREMENTAL: 0
1415

@@ -49,7 +50,7 @@ jobs:
4950
build:
5051
name: Build OK Bot
5152
env:
52-
CARGO_BIN_NAME: ok_bot
53+
CARGO_BIN_NAME: OK
5354
strategy:
5455
matrix:
5556
include:
@@ -112,15 +113,15 @@ jobs:
112113
key: ${{ matrix.target }}
113114
- name: Cargo build
114115
run: >
115-
cargo ${{ matrix.build }} --target ${{ matrix.target }}
116+
cargo ${{ matrix.build }} --profile ${{ env.BUILD_PROFILE }} --target ${{ matrix.target }}
116117
--bin ${{ env.CARGO_BIN_NAME }}
117118
- name: Upload artifacts
118119
uses: actions/upload-artifact@v4
119120
with:
120121
name: ${{ env.CARGO_BIN_NAME }}-${{ matrix.name }}
121122
path: |
122-
${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/${{ env.CARGO_BIN_NAME }}
123-
${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/${{ env.CARGO_BIN_NAME }}.exe
123+
${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/${{ env.BUILD_PROFILE }}/${{ env.CARGO_BIN_NAME }}
124+
${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/${{ env.BUILD_PROFILE }}/${{ env.CARGO_BIN_NAME }}.exe
124125
if-no-files-found: error
125126

126127
release:

src/pr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub struct DiffSummary {
88
pub size_difference: u64,
99
}
1010

11+
// test
1112
impl DiffSummary {
1213
pub fn new(diff: &ReportItemDifference) -> Self {
1314
let percent_diff = diff.new_fuzzy_match_percent - diff.old_fuzzy_match_percent;

0 commit comments

Comments
 (0)