Skip to content

Commit 17c8bb0

Browse files
author
Ariel Ben-Yehuda
committed
upload examples
1 parent 6aa596b commit 17c8bb0

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.github/actions/rust-build/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ runs:
1616
- uses: Swatinem/rust-cache@v2
1717
- name: Build
1818
shell: bash
19-
run: if [ "${{ inputs.toolchain }}" != stable ]; then rm -fv Cargo.lock; fi && cargo build --all-features --verbose
19+
run: |
20+
if [ "${{ inputs.toolchain }}" != stable ]; then
21+
rm -fv Cargo.lock
22+
fi
23+
cargo build --all-features --verbose
24+
cargo build --all-features --verbose --example simple
2025
- name: Run tests
2126
shell: bash
2227
run: cargo test --all-features --verbose

.github/workflows/build-decoder.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ jobs:
2222
working-directory: decoder
2323
shell: bash
2424
run: cargo test --all-features --verbose
25+
- name: Upload artifact for testing
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: pollcatch-decoder
29+
path: ./decoder/target/debug/pollcatch-decoder

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
strategy:
88
matrix:
99
toolchain:
10+
- stable # Stable is first to test with Cargo.lock
1011
- "1.85" # Current MSRV due to Cargo MSRV feature
11-
- stable
1212
env:
1313
RUST_BACKTRACE: 1
1414
steps:
@@ -17,5 +17,8 @@ jobs:
1717
uses: ./.github/actions/rust-build
1818
with:
1919
toolchain: ${{ matrix.toolchain }}
20-
21-
20+
- name: Upload artifact for testing
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: example-simple
24+
path: ./target/debug/example/simple

0 commit comments

Comments
 (0)