Skip to content

Check everything

Check everything #144

Workflow file for this run

name: Check everything
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: 0 20 * * *
env:
FORCE_COLOR: "1"
jobs:
checks:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install llvm@18
echo "/opt/homebrew/opt/llvm@18/bin" >> "$GITHUB_PATH"
- name: Build Odin
run: |
git clone https://github.com/odin-lang/Odin.git --depth 1 --single-branch --branch=master
cd Odin
make
echo "$(pwd)" >> "$GITHUB_PATH"
./odin report
- name: Check everything
run: |
FLAGS="-vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do"
pushd tests/bmff
odin test . $FLAGS
popd
pushd tests/ebml
odin test . $FLAGS
popd
- name: BMFF example
run: |
FLAGS="-vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -define:BMFF_DEBUG=false -o:speed"
pushd bmff/example
odin run . $FLAGS -- "../../tests/assets/bmff/test_metadata.mp4"
popd
- name: EBML example
run: |
FLAGS="-vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -define:EBML_DEBUG=false -o:speed"
pushd ebml/example
odin run . $FLAGS -- "../../tests/assets/ebml/subtitles.mkv"
popd