Files
torana/.github/workflows/main.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 9: mapping key "runs-on" already defined at line 5
Amneesh Singh 9fee346718 add GitHub CI
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2023-01-21 15:18:14 +05:30

27 lines
745 B
YAML

name: torana
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v18
- name: Check formatting
run: nix develop -c cargo fmt --check
- name: Set up cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
- name: Build
run: nix develop -c cargo build --release