Bump the cargo group across 1 directory with 4 updates #82
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: Rust | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-18.04] | |
rust: [stable, nightly] | |
steps: | |
- name: Install build dependencies | |
run: sudo apt update && sudo apt install -y libsqlite3-dev | |
- name: Set up a Rust toolchain | |
uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: ${{ matrix.rust }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build | |
run: cargo build --locked | |
- name: Build release | |
run: cargo build --release --locked | |
- name: Strip release | |
run: strip target/release/flathub-stats | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: flathub-stats_rust-${{ matrix.rust }}-${{ matrix.os }} | |
path: target/release/flathub-stats |