-
Notifications
You must be signed in to change notification settings - Fork 40
89 lines (72 loc) · 3.13 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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: Set up Dependencies
run: |
brew install llvm@18
echo "/opt/homebrew/opt/llvm@18/bin" >> "$GITHUB_PATH"
- name: Set up 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 -strict-style -vet-tabs -disallow-do -warnings-as-errors"
odin check by_example/dir_info $FLAGS
odin check by_example/dynamic_arrays $FLAGS
odin check by_example/hellope $FLAGS
odin check by_example/os_args $FLAGS
odin check by_example/read_console_input $FLAGS
odin check by_example/strings $FLAGS
odin check glfw/window $FLAGS
odin check json/load_json $FLAGS
odin check json/odin_info $FLAGS
odin check learn_metal/00-window $FLAGS
odin check learn_metal/01-primitive $FLAGS
odin check learn_metal/02-argbuffers $FLAGS
odin check learn_metal/02-argbuffers-no-sdl $FLAGS
odin check learn_metal/03-animation $FLAGS
odin check learn_metal/04-instancing $FLAGS
odin check learn_metal/05-perspective $FLAGS
odin check learn_metal/06-lighting $FLAGS
odin check learn_metal/07-texturing $FLAGS
odin check learn_metal/08-compute $FLAGS
odin check learn_metal/09-compute-to-render $FLAGS
odin check math/noise/draw_texture $FLAGS
odin check raylib/game_of_life $FLAGS
odin check raylib/microui $FLAGS
odin check raylib/ports/shaders/shaders_mesh_instancing.odin -file $FLAGS
odin check raylib/ports/shapes/shapes_basic_shapes.odin -file $FLAGS
odin check raylib/ports/shapes/shapes_bouncing_ball.odin -file $FLAGS
odin check raylib/ports/shapes/shapes_colors_palette.odin -file $FLAGS
odin check raylib/ports/shapes/shapes_logo_raylib_anim.odin -file $FLAGS
odin check raylib/ports/text/text_codepoints_loading.odin -file $FLAGS
odin check raylib/ports/textures/textures_gif_player.odin -file $FLAGS
odin check raylib/tetroid $FLAGS
odin check sdl2/chase_in_space $FLAGS
odin check sdl2/d3d11 -target:windows_amd64 $FLAGS
odin check sdl2/hellope $FLAGS
odin check sdl2/metal $FLAGS
odin check sdl2/microui $FLAGS
odin check sdl2/opengl $FLAGS
odin check wgpu/microui -target:windows_amd64 $FLAGS
odin check win32/game_of_life -target:windows_amd64 $FLAGS
odin check nanovg/example.odin -file $FLAGS
odin check nanovg/fbo.odin -file $FLAGS
odin check orca/breakout -target:orca_wasm32 $FLAGS
odin check orca/clock -target:orca_wasm32 $FLAGS
odin check orca/ui -target:orca_wasm32 $FLAGS