Compare commits
6 Commits
5b94e21f21
...
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a938adff31 | ||
|
|
1f143520a8 | ||
|
|
cbdfcce354 | ||
|
|
66957b5e19 | ||
|
|
f12af76845 | ||
|
|
8906b2eab5 |
37
.github/workflows/cd.yml
vendored
Normal file
37
.github/workflows/cd.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: Arduino Pong CD
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Arduino CLI
|
||||||
|
run: |
|
||||||
|
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
|
||||||
|
echo "./bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Install Board Core and Libs
|
||||||
|
run: |
|
||||||
|
arduino-cli core update-index
|
||||||
|
arduino-cli core install arduino:renesas_uno
|
||||||
|
|
||||||
|
- name: Build Binary
|
||||||
|
run: make compile
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
build/*.bin
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
.secrets
|
.secrets
|
||||||
.arduino_cache/
|
.arduino_cache/
|
||||||
bin/
|
bin/
|
||||||
|
build/
|
||||||
|
|||||||
7
Makefile
7
Makefile
@@ -30,8 +30,13 @@ prepare:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
|
@mkdir -p build
|
||||||
@echo -e "$(GREEN)🛠️ Compiling $(SKETCH)...$(CLEAR)"
|
@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:
|
prepare_and_compile:
|
||||||
make prepare --no-print-directory
|
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.
|
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/ci.yml)
|
||||||
|
[](https://github.com/Dea1993/arduino_pong/actions/workflows/cd.yml)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
|
||||||
# 📹 Preview
|
# 📹 Preview
|
||||||
|
|||||||
Reference in New Issue
Block a user