Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a938adff31 | ||
|
|
1f143520a8 | ||
|
|
cbdfcce354 | ||
|
|
66957b5e19 | ||
|
|
f12af76845 |
8
.github/workflows/cd.yml
vendored
8
.github/workflows/cd.yml
vendored
@@ -5,6 +5,9 @@ on:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -15,13 +18,12 @@ jobs:
|
||||
- name: Install Arduino CLI
|
||||
run: |
|
||||
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
|
||||
echo "$HOME/bin" >> $GITHUB_PATH
|
||||
echo "./bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Install Board Core and Libs
|
||||
run: |
|
||||
arduino-cli core update-index
|
||||
arduino-cli core install arduino:renesas_uno
|
||||
arduino-cli lib install "Arduino_LED_Matrix"
|
||||
|
||||
- name: Build Binary
|
||||
run: make compile
|
||||
@@ -30,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 }}
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
.secrets
|
||||
.arduino_cache/
|
||||
bin/
|
||||
build/
|
||||
|
||||
7
Makefile
7
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
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
A classic implementation of the Pong game developed specifically for the Arduino UNO R4 WiFi, utilizing its built-in 12×8 LED matrix as the game screen.
|
||||
|
||||
[](https://github.com/Dea1993/arduino_pong/actions/workflows/ci.yml)
|
||||
[](https://github.com/Dea1993/arduino_pong/actions/workflows/cd.yml)
|
||||
[](LICENSE)
|
||||
|
||||
# 📹 Preview
|
||||
|
||||
Reference in New Issue
Block a user