-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 1.12 KB
/
Copy pathMakefile
File metadata and controls
38 lines (26 loc) · 1.12 KB
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
PYTHON ?= python3
REPO_ROOT := $(CURDIR)
export PYTHONPATH := $(REPO_ROOT)/python:$(REPO_ROOT)/compiler$(if $(PYTHONPATH),:$(PYTHONPATH))
.PHONY: check examples native-sdk-check package package-test python-check repository-check shell-check static-check test validate
python-check:
$(PYTHON) -m compileall -q compiler/netra_compiler python/netra_kernel tools/compiler tools/ci tests/compiler tests/package
static-check:
$(PYTHON) -m ruff check compiler/netra_compiler python/netra_kernel tools tests --select F401,F811,F821,F841
test:
$(PYTHON) -m unittest discover -s tests/compiler -v
package-test:
$(PYTHON) -m pytest -q tests/package
repository-check:
$(PYTHON) tools/ci/check_repository.py
native-sdk-check:
$(PYTHON) tools/ci/check_native_sdk.py
validate:
$(PYTHON) tools/compiler/validate_gfx950_tactic_catalog.py
examples:
$(PYTHON) tools/ci/compile_examples.py
shell-check:
git ls-files -z '*.sh' | xargs -0 -r -n1 bash -n
git diff --check
check: python-check static-check test package-test repository-check native-sdk-check validate examples shell-check
package:
PYTHON=$(PYTHON) bash tools/ci/build_package.sh