Automatically refresh docker images #161
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
CCACHE_DIR: /home/runner/work/kaldi/kaldi/.ccache | |
CXX: "ccache g++" | |
CC: "ccache gcc" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install sox | |
run: sudo apt-get install -y sox intel-mkl | |
- name: Install python2 | |
run: sudo apt-get install -y python2 | |
- name: ccache | |
uses: hendrikmuhs/ccache-action@v1.2 | |
with: | |
verbose: 1 | |
max-size: 3G | |
- name: make tools | |
run: cd tools && make -j3 | |
- name: ccache stats | |
run: ccache -s | |
- name: configure | |
run: cd src && ./configure --shared | |
- name: make depend | |
run: cd src && make clean && make depend | |
- name: make | |
run: cd src && make -j 3 | |
- name: make test | |
run: cd src && make test | |
- name: upload logs if failure | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: fail-logs | |
path: ${{ github.workspace }}/src/**/*testlog |