added tests to tls.rs. load_rustls_config returns a Result now. Intro… #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
permissions: | |
contents: write | |
on: | |
push: | |
tags: | |
- v[0-9]+.* | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y pkg-config libssl-dev | |
- name: Install cargo-tarpaulin | |
run: cargo install cargo-tarpaulin | |
- name: Run cargo test | |
run: cargo test --all --release | |
- name: Test coverage | |
run: cargo tarpaulin --out Xml --output-dir ./coverage | |
- name: Coveralls GitHub Action | |
uses: coverallsapp/[email protected] | |
create-release: | |
needs: run-tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: taiki-e/create-gh-release-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
upload-assets: | |
needs: create-release | |
strategy: | |
matrix: | |
include: | |
- target: x86_64-unknown-linux-musl | |
os: ubuntu-latest | |
- target: aarch64-apple-darwin | |
os: macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y pkg-config libssl-dev | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: taiki-e/upload-rust-binary-action@v1 | |
with: | |
bin: orca | |
target: ${{ matrix.target }} | |
token: ${{ secrets.GITHUB_TOKEN }} |