Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Check (w/ Clippy)
on:
- push
jobs:
clippy:
name: Run clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.3.1
with:
toolchain: stable
- name: Run clippy
run: cargo clippy -- -D warnings
build:
name: Build on ${{ matrix.target }}
runs-on: ${{ matrix.target }}
strategy:
matrix:
target: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@master
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.3.1
with:
toolchain: stable
- name: Compile
run: cargo build -r
- uses: actions/upload-artifact@v3
with:
name: discloud-cli-${{ matrix.target }}
path: target
Loading