29 lines
599 B
YAML
29 lines
599 B
YAML
name: Build and Test with cargo
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./tnm-gui
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install toolchain
|
|
uses: https://github.com/actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- uses: https://github.com/actions-rs/cargo@v1
|
|
name: Build program
|
|
with:
|
|
command: build
|
|
args: --bin tnm-gui |