Skip to content

Commit

Permalink
Merge pull request skim-rs#471 from grant0417/master
Browse files Browse the repository at this point in the history
  • Loading branch information
yazgoo authored Oct 27, 2022
2 parents 512ddd9 + df54d77 commit 66a2be6
Show file tree
Hide file tree
Showing 23 changed files with 579 additions and 566 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build & Test

on:
workflow_dispatch:
pull_request:
push:
branches:
Expand Down Expand Up @@ -63,6 +64,58 @@ jobs:
- name: Cache
uses: Swatinem/rust-cache@v1

clippy:
name: clippy
runs-on: ${{matrix.os}}
strategy:
matrix:
build: [linux, macos]
include:
- build: linux
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-musl
- build: macos
os: macos-latest
rust: stable
target: x86_64-apple-darwin
steps:
- name: Install dependencies (for Linux)
run: |
sudo apt-get install zsh
python3 -V
tmux -V
locale
if: runner.os == 'Linux'
env:
HOMEBREW_NO_AUTO_UPDATE: 1
- name: Install dependencies (for MacOS)
run: |
brew install tmux
brew install zsh
python3 -V
tmux -V
locale
if: runner.os == 'macOS'
env:
HOMEBREW_NO_AUTO_UPDATE: 1

- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install correct toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
components: clippy
- name: Clippy
run: cargo clippy
- name: Cache
uses: Swatinem/rust-cache@v1

rustfmt:
name: rustfmt
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 66a2be6

Please sign in to comment.