Skip to content

Commit a230d5f

Browse files
committed
ci: merge building binaries into check-and-test
1 parent ac5a331 commit a230d5f

File tree

1 file changed

+26
-49
lines changed

1 file changed

+26
-49
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,31 @@ jobs:
158158
flag-name: code-coverage-report-${{ matrix.rust }}-${{ matrix.os }}${{ matrix.rust != 'nightly' && matrix.rustc_bootstrap == '1' && '-bootstrap' || '' }}
159159
parallel: true
160160

161+
- name: Build Binaries
162+
if: matrix.rust == 'nightly'
163+
run: cargo build --verbose --bins --workspace --frozen --profile=release-lto
164+
165+
- name: Print diagnostics
166+
if: matrix.rust == 'nightly' && runner.os == 'Windows'
167+
shell: powershell
168+
run: |
169+
Get-ChildItem -Path .\target\release-lto
170+
171+
- name: Print diagnostics
172+
if: matrix.rust == 'nightly' && runner.os != 'Windows'
173+
run: |
174+
ls -Al ./target/release-lto
175+
176+
- name: Upload Binaries as GitHub artifact
177+
if: matrix.rust == 'nightly'
178+
uses: actions/[email protected]
179+
with:
180+
name: git-remote-codecommit-${{ matrix.os }}
181+
path: |
182+
target/release-lto/git-remote-codecommit
183+
target/release-lto/git-remote-codecommit.exe
184+
compression-level: 0
185+
161186
finalize-coveralls-run:
162187
name: Finalize Coveralls Run
163188
needs: [check-and-test]
@@ -217,58 +242,10 @@ jobs:
217242
path: target/doc
218243
compression-level: 9
219244

220-
build-binaries:
221-
name: Build Binaries
222-
needs: [check-and-test]
223-
strategy:
224-
matrix:
225-
os:
226-
- ubuntu-latest
227-
- macos-latest
228-
- windows-latest
229-
rust:
230-
- nightly
231-
runs-on: ${{ matrix.os }}
232-
steps:
233-
- name: Checkout
234-
uses: actions/checkout@v4
235-
236-
- name: Install Rust (${{ matrix.rust }})
237-
uses: actions-rust-lang/setup-rust-toolchain@v1
238-
with:
239-
toolchain: ${{ matrix.rust }}
240-
cache-shared-key: ${{ matrix.os }}-${{ matrix.rust }}
241-
242-
- name: Fetch cargo dependencies
243-
run: cargo fetch --verbose --locked
244-
245-
- name: Build Binaries
246-
run: cargo build --verbose --bins --workspace --frozen --profile=release-lto
247-
248-
- name: Print diagnostics
249-
if: runner.os == 'Windows'
250-
shell: powershell
251-
run: |
252-
Get-ChildItem -Path .\target\release-lto
253-
254-
- name: Print diagnostics
255-
if: runner.os != 'Windows'
256-
run: |
257-
ls -Al ./target/release-lto
258-
259-
- name: Upload Binaries as GitHub artifact
260-
uses: actions/[email protected]
261-
with:
262-
name: git-remote-codecommit-${{ matrix.os }}
263-
path: |
264-
target/release-lto/git-remote-codecommit
265-
target/release-lto/git-remote-codecommit.exe
266-
compression-level: 0
267-
268245
push-to-codecommit:
269246
concurrency: push-to-codecommit
270247
name: Push to CodeCommit
271-
needs: [finalize-coveralls-run, build-docs, build-binaries]
248+
needs: [finalize-coveralls-run, build-docs, check-and-test]
272249
runs-on: ubuntu-latest
273250
env:
274251
RUST_BACKTRACE: 1

0 commit comments

Comments
 (0)