Debian Codegraph @

.github/workflows/frog.yml

raw symbols SCIP
1 ---
2 name: C/C++ CI
3
4 on:
5 schedule:
6 # Run monthly, at 4:00 on the 10t day of month.
7 - cron: "0 4 10 * *"
8
9 push:
10 branches:
11 - master
12 - develop
13
14 paths:
15 - configure.ac
16 - 'src/**'
17 - 'include/**'
18 - .github/workflows/**.yml
19
20 pull_request:
21 branches: [master]
22
23 jobs:
24 notification:
25 runs-on: ubuntu-latest
26 name: Notify start to gitlama
27 steps:
28 - name: IRC notification
29 uses: LanguageMachines/ticcactions/irc-init@v1
30 - name: Cancel Previous Runs
31 uses: styfle/[email protected]
32 with:
33 access_token: ${{ github.token }}
34
35 build:
36 needs: notification
37 runs-on: ${{ matrix.os }}
38 strategy:
39 matrix:
40 os: [ubuntu-latest, macos-latest]
41 compiler: [g++-12, clang++]
42
43 steps:
44 - uses: actions/[email protected]
45 - uses: LanguageMachines/ticcactions/cpp-build-env@v1
46 - uses: LanguageMachines/ticcactions/cpp-dependencies@v1
47 - uses: LanguageMachines/ticcactions/setup-cppcheck@v1
48 - uses: LanguageMachines/ticcactions/irc-nick@v1
49
50 - name: Install Special Dependencies
51 run: |
52 if [ "$RUNNER_OS" == "Linux" ]
53 then
54 sudo apt-get install expect
55 else
56 brew install telnet
57 fi
58
59 - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1
60 with:
61 branch: ${{ github.ref_name }}
62 module: ticcutils
63
64 - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1
65 with:
66 branch: ${{ github.ref_name }}
67 module: libfolia
68
69 - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1
70 with:
71 branch: ${{ github.ref_name }}
72 module: timbl
73
74 - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1
75 with:
76 branch: ${{ github.ref_name }}
77 module: mbt
78
79 - uses: LanguageMachines/ticcactions/add-textcat@v1
80
81 - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1
82 with:
83 module: uctodata
84
85 - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1
86 with:
87 branch: ${{ github.ref_name }}
88 module: ucto
89
90 - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1
91 with:
92 module: frogdata
93
94 - name: Static Code-check
95 if: ${{ env.action_status == '' }}
96 run: cppcheck ${{ env.cpc_opts }} .
97
98 - uses: LanguageMachines/ticcactions/cpp-safe-build@v1
99
100 - name: Notify IRC of build result
101 uses: LanguageMachines/ticcactions/irc-status@v1
102 with:
103 branch: ${{ github.ref_name }}
104 nickname: ${{ env.nick }}
105 step: build
106 status: ${{ env.action_status }}
107 details: ${{ env.action_details }}
108
109 - name: frogtests
110 id: frogtests
111 if: ${{ env.action_status == '' }}
112 run: |
113 git clone --depth=1 --single-branch https://github.com/LanguageMachines/frogtests.git
114 cd frogtests
115 frog_bin=/usr/local/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ./testaction.sh
116 TEST_STAT=$(cat status.tmp)
117 if [ $TEST_STAT != 0 ]
118 then
119 echo "action_status=frogtests" >> $GITHUB_ENV
120 fi
121 echo "action_details=$TEST_STAT errors" >> $GITHUB_ENV
122 continue-on-error: true
123
124 - name: log problems
125 if: >-
126 ${{ env.action_status == '' &&
127 steps.frogtests.outcome != 'success' }}
128 run: |
129 cat frogtests/*.err
130 cat frogtests/*.diff
131
132 - name: Notify IRC of end result
133 uses: LanguageMachines/ticcactions/irc-status@v1
134 with:
135 branch: ${{ github.ref_name }}
136 nickname: ${{ env.nick }}
137 step: testing
138 status: ${{ env.action_status }}
139 details: ${{ env.action_details }}