update deps #149
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: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Run Tests and Build | |
continue-on-error: true | |
strategy: | |
matrix: | |
build: [stable, beta, nightly, macos, win64] | |
include: | |
- build: stable | |
os: ubuntu-latest | |
rust: stable | |
- build: beta | |
os: ubuntu-latest | |
rust: beta | |
- build: nightly | |
os: ubuntu-latest | |
rust: nightly | |
- build: macos | |
os: macos-latest | |
rust: stable | |
- build: win64 | |
os: windows-latest | |
rust: stable-x86_64-msvc | |
# win32 build seems to be broken atm | |
# - build: win32 | |
# os: windows-2016 | |
# rust: stable-i686-msvc | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@main | |
with: | |
submodules: true | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Use strawberry perl | |
if: startsWith(matrix.os, 'windows') | |
run: echo "name=OPENSSL_SRC_PERL::C:/Strawberry/perl/bin/perl" >> $GITHUB_ENV | |
shell: bash | |
- name: Test Perl (Windows) | |
run: | | |
Get-Command perl | |
perl -v | |
if: startsWith(matrix.os, 'windows') | |
- name: Test without default features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --no-default-features | |
- name: Test with default features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
- name: Build release binary | |
if: startsWith(matrix.rust, 'stable') | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release | |
- name: Delete intermediate files | |
if: startsWith(matrix.rust, 'stable') | |
run: rm -rf ./target/release/{build,deps,incremental} | |
shell: bash | |
- name: Upload artifacts | |
if: startsWith(matrix.rust, 'stable') | |
uses: actions/upload-artifact@v1 | |
with: | |
name: dmgwiz_release_${{ matrix.build }} | |
path: ./target/release/ | |
rustfmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: rustfmt | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: clippy | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: clippy |