Skip to content

Switch to gix

Switch to gix #33

Workflow file for this run

on: [push, pull_request]
name: ci
jobs:
tests:
name: Test and Linting
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Check spelling
uses: codespell-project/actions-codespell@v1
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
artifact:
needs: tests
if: github.ref == 'refs/heads/main'
name: Create artifact
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo release build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: git-mob-rs-${{ matrix.os }}
path: |
target/release/git-*
!target/release/git-*.d