Skip to content

Merge pull request #14 from isker/patch-2 #26

Merge pull request #14 from isker/patch-2

Merge pull request #14 from isker/patch-2 #26

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
#runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: ⚡ Cache
uses: actions/cache@v3.0.5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --release
- name: Run tests
run: cargo test
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'push' }}
with:
name: transg-tui-${{ runner.os }}
path: target/release/transgression-tui*