Skip to content

Workflow file for this run

name: Build and Run Rust Application
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-run:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install dependencies
run: |
cargo fetch
- name: Build the application
run: |
cargo build --release
- name: Run the application
run: |
./target/release/fontmanager
shell: bash
if: ${{ matrix.os != 'windows-latest' }}
- name: Run the application (Windows)
run: |
.\target\release\fontmanager.exe
shell: cmd
if: ${{ matrix.os == 'windows-latest' }}