diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 394d40a..b86b2e4 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -32,6 +32,6 @@ jobs: uses: softprops/action-gh-release@v2 with: files: | - build/arduino.renesas_uno.unor4wifi/arduino_pong.ino.bin + build/*.bin env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 40c3ac7..da89dd2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .secrets .arduino_cache/ bin/ +build/ diff --git a/Makefile b/Makefile index aa7809b..8b5e92c 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,13 @@ prepare: fi compile: + @mkdir -p build @echo -e "$(GREEN)🛠️ Compiling $(SKETCH)...$(CLEAR)" - @$(CLI) compile -b $(BOARD) $(SKETCH) + @$(CLI) compile -b $(BOARD) --output-dir build $(SKETCH) + +clean: + @echo -e "$(GREEN)🛠️ Removing build files...$(CLEAR)" + @rm -rf build/ prepare_and_compile: make prepare --no-print-directory