-
-
Notifications
You must be signed in to change notification settings - Fork 29
71 lines (55 loc) · 2 KB
/
build-FOME-console.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: FOME console
on: [push,pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '8'
- name: Test Compiler
run: javac -version
- name: Install Tools
working-directory: ./.github/workflows/
run: |
sudo ./add-ubuntu-latest-apt-mirrors.sh
sudo apt-get install sshpass mtools
- name: Generate Configs, Enums & Live Documentation
working-directory: ./firmware/
run: ./gen_default_everything.sh
- name: Generate Java (Antlr)
working-directory: ./java_tools
run: ./gradlew :config_definition:generateGrammarSource
- name: Print GCC version
working-directory: .
run: gcc -v
- name: Test console
# at the moment 'jar' task does not depend on tests?! maybe because tests take some time?
working-directory: ./java_tools
run: ./gradlew test
- name: Build console
working-directory: ./java_tools
run: ./gradlew :ui:shadowJar
- name: Attach console junit results
if: always()
uses: actions/upload-artifact@v4
with:
name: console junit
path: ./java_console/build/*.txt
- name: Configuration Definition CI, without pushing new .jar
working-directory: ./java_tools
run: ./gradlew :config_definition:shadowJar
- name: Test everything java_tools gradle while we are here
working-directory: ./java_tools
run: ./gradlew test
- name: Configuration Definition and other tools CI, without pushing new .jars
working-directory: ./java_tools
run: ./gradlew shadowJar
# this job focuses of tool validation so we do not push fresh enums here
- name: Generate Enums using freshly compiled tool
working-directory: ./firmware/
run: ./gen_enum_to_string.sh