mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-12 16:10:07 +01:00
74 lines
1.6 KiB
YAML
74 lines
1.6 KiB
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- staging
|
|
- trying
|
|
|
|
jobs:
|
|
|
|
test_linux:
|
|
name: Test on Linux
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
rust: [1.60.0, stable, beta, nightly]
|
|
steps:
|
|
- name: Rust install
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{ matrix.rust }}
|
|
profile: minimal
|
|
override: true
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Build
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
- name: Test
|
|
run: ./ci/test_full.sh
|
|
|
|
test_macOS:
|
|
name: Test on macOS 11
|
|
runs-on: macos-11
|
|
steps:
|
|
- name: Rust install
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
target: aarch64-apple-darwin
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Build
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
- name: Test
|
|
run: ./ci/test_full.sh
|
|
# uses: actions-rs/cargo@v1
|
|
# with:
|
|
# command: test
|
|
# args: --target aarch64-apple-darwin --all-features
|
|
|
|
|
|
fmt:
|
|
name: Format
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Rust install
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: 1.60.0
|
|
profile: minimal
|
|
override: true
|
|
components: rustfmt
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Check formatting
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check
|