Skip to content

clippy

clippy #115

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
path: "target/release/velvet-minecraft"
gtk: true
- os: macos-latest
path: "target/release/velvet-minecraft"
gtk: false
- os: windows-latest
path: "target/release/velvet-minecraft.exe"
gtk: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: rui314/setup-mold@v1
- name: Install GTK
if: ${{ matrix.gtk }}
run: sudo apt install libgtk-3-dev
- name: Build
run: cargo build --release --verbose
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.1
with:
name: velvet-${{ matrix.os }}
path: ${{ matrix.path }}