This competes the CI working off makefiles for the 3 OS ( Mac, Windows and Linux)
Both Windows and Linux will work once we adjust the code, but for now the Makefile switch statement is skipping them. We just can turn them on when we want in CI.
On Laptop you can explicitly call the make build-os-arch to test locally and then toggle the switch when you want CI to also do it.
build:
@echo ""
@echo "Building ..."
ifeq ($(OS_GO_OS),windows)
@echo ""
@echo "Detected Windows ..."
$(MAKE) dep-tools
# Windows cant build tray code: https://github.com/gedw99/2fa/actions/runs/7034294593/job/19142004038
@echo "Skipping Windows until we support Windows tray ..."
#$(MAKE) build-windows-all
@echo ""
endif
ifeq ($(OS_GO_OS),darwin)
@echo ""
@echo "Detected Darwin so building ..."
$(MAKE) dep-tools
$(MAKE) build-macos-all
@echo ""
endif
ifeq ($(OS_GO_OS),linux)
@echo ""
@echo "Detected Linux but we have no Linux support yet, so skipping ..."
endif
This competes the CI working off makefiles for the 3 OS ( Mac, Windows and Linux)
Both Windows and Linux will work once we adjust the code, but for now the Makefile switch statement is skipping them. We just can turn them on when we want in CI.
On Laptop you can explicitly call the make build-os-arch to test locally and then toggle the switch when you want CI to also do it.