Skip to content

upload the error logs to artifact repository (#4938) #155

upload the error logs to artifact repository (#4938)

upload the error logs to artifact repository (#4938) #155

Workflow file for this run

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@v3
- 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/[email protected]
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
name: fail-logs

Check failure on line 44 in .github/workflows/c-cpp.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/c-cpp.yml

Invalid workflow file

You have an error in your yaml syntax on line 44
path: ${{ github.workspace }}/src/**/*testlog