summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
blob: f7bddb5251025745ab1b231ca1c53e4fc85c3dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: build

on: [push, pull_request]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [windows-latest, ubuntu-latest, macOS-latest]
    steps:
    - uses: actions/checkout@v3
    - name: Build
      run: cargo build --release --verbose
    - name: Run tests
      run: cargo test --verbose
    - name: Upload artifact
      uses: actions/upload-artifact@v2
      with:
        name: git-absorb-${{ matrix.os }}
        path: |
          target/release/git-absorb
          target/release/git-absorb.exe