Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.

Commit 4f93ee8

Browse files
committed
misc: Created build-and-upload style step that triggers when a push to main occurs
1 parent 65fafd9 commit 4f93ee8

3 files changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,14 @@ jobs:
6363
files: codecov.json
6464
fail_ci_if_error: true
6565
token: ${{ secrets.CODECOV_TOKEN }}
66+
- name: Release build
67+
if: success() && github.event_name == 'push'
68+
run: |
69+
cargo b -r
70+
- name: Upload build
71+
if: success() && github.event_name == 'push'
72+
uses: actions/upload-artifact@v4
73+
with:
74+
name: bmputil-${{ matrix.os.id }}
75+
path: target/release/bmputil-cli
76+
if-no-files-found: error

.github/workflows/build-macos.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,17 @@ jobs:
6464
files: codecov.json
6565
fail_ci_if_error: true
6666
token: ${{ secrets.CODECOV_TOKEN }}
67+
- name: Release build
68+
if: success() && github.event_name == 'push'
69+
run: |
70+
cargo b -r
71+
- name: Upload build
72+
if: success() && github.event_name == 'push'
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: bmputil-${{ matrix.os }}
76+
path: target/release/bmputil-cli
77+
if-no-files-found: error
6778

6879
build-macos-homebrew:
6980
name: '${{ matrix.os }} (homebrew)'
@@ -114,3 +125,14 @@ jobs:
114125
files: codecov.json
115126
fail_ci_if_error: true
116127
token: ${{ secrets.CODECOV_TOKEN }}
128+
- name: Release build
129+
if: success() && github.event_name == 'push'
130+
run: |
131+
cargo b -r
132+
- name: Upload build
133+
if: success() && github.event_name == 'push'
134+
uses: actions/upload-artifact@v4
135+
with:
136+
name: bmputil-${{ matrix.os }}-homebrew
137+
path: target/release/bmputil-cli
138+
if-no-files-found: error

.github/workflows/build-windows.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ jobs:
6868
files: codecov.json
6969
fail_ci_if_error: true
7070
token: ${{ secrets.CODECOV_TOKEN }}
71+
- name: Release build
72+
if: success() && github.event_name == 'push'
73+
run: |
74+
cargo b -r
75+
- name: Upload build
76+
if: success() && github.event_name == 'push'
77+
uses: actions/upload-artifact@v4
78+
with:
79+
name: bmputil-${{ matrix.os }}-msvc
80+
path: target/release/bmputil-cli
81+
if-no-files-found: error
7182

7283
build-mingw:
7384
# Turn MSYS2/MinGW builds off for now as they're terminally broken till some things are fixed in libwdi-sys
@@ -141,3 +152,14 @@ jobs:
141152
files: codecov.json
142153
fail_ci_if_error: true
143154
token: ${{ secrets.CODECOV_TOKEN }}
155+
- name: Release build
156+
if: success() && github.event_name == 'push'
157+
run: |
158+
cargo b -r
159+
- name: Upload build
160+
if: success() && github.event_name == 'push'
161+
uses: actions/upload-artifact@v4
162+
with:
163+
name: bmputil-${{ matrix.os }}-${{ matrix.sys }}
164+
path: target/release/bmputil-cli
165+
if-no-files-found: error

0 commit comments

Comments
 (0)