Skip to content

Commit be37ed7

Browse files
committed
add github actions
1 parent 2e838fc commit be37ed7

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

.github/workflows/pythonapp.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 4
10+
matrix:
11+
python-version: [3.8, 3.7, 3.6]
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: 'Set up Python ${{ matrix.python-version }}'
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: '${{ matrix.python-version }}'
18+
19+
- name: 'Makefile help'
20+
run: make
21+
22+
- name: 'cli.py help'
23+
run: ./cli.py -h
24+
25+
- name: 'generate RSA keys'
26+
run: make rsa-keys
27+
28+
- name: 'print RSA modulus'
29+
run: make print-rsa-modulus
30+
31+
- name: 'update config'
32+
run: make update-config
33+
34+
- name: 'verify'
35+
run: make assert-yaota8266-setup

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ help: ## This help page
55
@echo 'make targets:'
66
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-17s %s\n", $$1, $$2}'
77

8-
update-configs: ## Create config.h if not exists and/or insert current RSA modulus in config.h
9-
python3 cli.py update-configs
8+
update-config: ## Create config.h if not exists and/or insert current RSA modulus in config.h
9+
python3 cli.py update_config
1010

1111
print-rsa-modulus: ## Print the RSA modulus line for copy&paste into config.h
1212
python3 cli.py print_rsa_modulus
1313

1414
rsa-keys: ## Generate RSA keys and print the RSA modulus line for copy&paste into config.h
1515
python3 cli.py generate_rsa_keys
1616
$(MAKE) print-rsa-modulus
17-
$(MAKE) update-configs
17+
$(MAKE) update-config
1818

1919
verify: ## Check RSA key, config.h and compiled "yaota8266.bin"
2020
python3 cli.py verify

0 commit comments

Comments
 (0)