reducing code duplication and making CI happier
This commit is contained in:
parent
9db984b807
commit
a82a9cc3f7
|
@ -18,13 +18,10 @@ jobs:
|
|||
- name: Install Tools
|
||||
run: sudo apt-get install mtools
|
||||
|
||||
- name: Generate Configs to survive meta info change
|
||||
- name: Generate Configs, Enums & Live Documentation
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_config_default.sh
|
||||
run: ./gen_default_everything.sh
|
||||
|
||||
- name: Generate Live Documentation to survive meta info change
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_live_documentation.sh
|
||||
|
||||
- name: Test Compiler
|
||||
run: javac -version
|
||||
|
|
|
@ -22,13 +22,9 @@ jobs:
|
|||
- name: Install Tools
|
||||
run: sudo apt-get install sshpass mtools
|
||||
|
||||
- name: Generate Configs to survive meta info change
|
||||
- name: Generate Configs, Enums & Live Documentation
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_config_default.sh
|
||||
|
||||
- name: Generate Live Documentation to survive meta info change
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_live_documentation.sh
|
||||
run: ./gen_default_everything.sh
|
||||
|
||||
- name: Generate Java (Antlr)
|
||||
working-directory: ./android
|
||||
|
|
|
@ -25,17 +25,9 @@ jobs:
|
|||
sudo apt-get update
|
||||
sudo apt-get install gcc-multilib g++-multilib mtools dosfstools zip
|
||||
|
||||
- name: Generate Configs for simulator
|
||||
- name: Generate Configs, Enums & Live Documentation
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_config_default.sh
|
||||
|
||||
- name: Generate Enums
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_enum_to_string.sh
|
||||
|
||||
- name: Generate Live Documentation
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_live_documentation.sh
|
||||
run: ./gen_default_everything.sh
|
||||
|
||||
- name: Compile Simulator
|
||||
working-directory: ./simulator/
|
||||
|
|
|
@ -31,17 +31,9 @@ jobs:
|
|||
run: |
|
||||
brew install mtools zip dosfstools
|
||||
|
||||
- name: Generate Configs for unit tests
|
||||
- name: Generate Configs, Enums & Live Documentation
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_config_default.sh
|
||||
|
||||
- name: Generate Enums
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_enum_to_string.sh
|
||||
|
||||
- name: Generate Live Documentation
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_live_documentation.sh
|
||||
run: ./gen_default_everything.sh
|
||||
|
||||
- name: Print Compiler version
|
||||
# NOTE: on mac, this is actually symlink'd to clang, not gcc, but that's ok - we want to build on both
|
||||
|
|
|
@ -35,6 +35,7 @@ jobs:
|
|||
- name: Identify Agent
|
||||
run: uname -a
|
||||
|
||||
# huh? why do we gen_config_default here if we gen_config_board later?
|
||||
- name: Generate Configs for HW CI
|
||||
working-directory: ./firmware/
|
||||
run: ./gen_config_default.sh
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# is order of operations important here or not really?
|
||||
|
||||
echo "gen_enum_to_string.sh as part of everything"
|
||||
./gen_enum_to_string.sh
|
||||
|
||||
echo "gen_live_documentation.sh as part of everything"
|
||||
./gen_live_documentation.sh
|
||||
|
||||
echo "gen_config_default.sh as part of everything"
|
||||
./gen_config_default.sh
|
Loading…
Reference in New Issue