Skip to content

Bump reqwest, use blocking API and fix SSL errors #5

Bump reqwest, use blocking API and fix SSL errors

Bump reqwest, use blocking API and fix SSL errors #5

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
name: Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, windows-latest, ubuntu-latest]
include:
- os: macOS-latest
archive: tar
output: streamlib-${{ github.sha }}-x86_64-apple-darwin.tar.gz
content_type: application/gzip
- os: windows-latest
archive: zip
output: streamlib-${{ github.sha }}-x86_64-pc-windows-msvc.zip
content_type: application/zip
- os: ubuntu-latest
archive: tar
output: streamlib-${{ github.sha }}-x86_64-unknown-linux-gnu.tar.gz
content_type: application/gzip
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build
run: cargo build --verbose --release
- name: Test
run: cargo test --verbose
- name: Build ZIP
id: build_zip
if: matrix.archive == 'zip'
run: |
cp target/release/streamlib.exe .
7z a ${{ matrix.output }} streamlib.exe
- name: Build TAR
id: build_tar
if: matrix.archive == 'tar'
run: |
cp target/release/streamlib .
tar czvf ${{ matrix.output }} streamlib
- name: Upload
uses: actions/upload-artifact@master
with:
name: ${{ matrix.output }}
path: ${{ matrix.output }}