mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-09 09:49:10 +02:00
Upload binaries from build step as artifact (#423)
This commit is contained in:
parent
9bb95ad11d
commit
bc820c5f10
1 changed files with 18 additions and 4 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
|
@ -16,19 +16,33 @@ jobs:
|
|||
matrix:
|
||||
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||
toolchain: [stable, 1.75.0]
|
||||
include:
|
||||
- platform: windows-latest
|
||||
exe_suffix: .exe
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
- run: mkdir artifacts
|
||||
- name: Build with default features
|
||||
run: cargo build
|
||||
run: |
|
||||
cargo build
|
||||
cp target/debug/tldr${{ matrix.exe_suffix}} artifacts/tldr-default${{ matrix.exe_suffix}}
|
||||
- name: Build with logging and Rustls with webpki roots
|
||||
run: cargo build --features logging,rustls-with-webpki-roots --no-default-features
|
||||
run: |
|
||||
cargo build --features logging,rustls-with-webpki-roots --no-default-features
|
||||
cp target/debug/tldr${{ matrix.exe_suffix}} artifacts/tldr-logging-rustls-webpki${{ matrix.exe_suffix}}
|
||||
- name: Build with native TLS backend
|
||||
# expects runners have the proper Native SSL library
|
||||
run: cargo build --features native-tls --no-default-features
|
||||
run: |
|
||||
# expects runners have the proper Native SSL library
|
||||
cargo build --features native-tls --no-default-features
|
||||
cp target/debug/tldr${{ matrix.exe_suffix}} artifacts/tldr-native-tls${{ matrix.exe_suffix}}
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: tldr-debug-build-${{ matrix.platform }}-rust-${{ matrix.toolchain }}
|
||||
path: artifacts/
|
||||
- name: Run tests
|
||||
run: cargo test -- --test-threads 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue