ci: Split dist checks from CI run, upgrade outdated actions

This commit is contained in:
Yury Popov
2022-11-18 00:44:13 +03:00
committed by Yury Popov
parent 0f3fb42b62
commit 391a7191ad
3 changed files with 76 additions and 63 deletions
+2 -59
View File
@@ -164,7 +164,7 @@ jobs:
sanitizer: valgrind
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: enable 32bit architecture
run: sudo dpkg --add-architecture i386
if: matrix.arch == 'x86-32'
@@ -187,7 +187,7 @@ jobs:
./configure ${{ matrix.config }}
- name: Store the config
if: ${{ failure() }} && matrix.arch != 'arm-32' && matrix.arch != 'armel-32' && matrix.arch != 'arm-64'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: config-${{ matrix.arch }}-${{ matrix.sanitizer }}.log
path: config.log
@@ -209,60 +209,3 @@ jobs:
CFLAGS="${{ matrix.configflags }} ${{ matrix.archconfigflags }}" CXXFLAGS="${{ matrix.configflags }} ${{ matrix.archconfigflags }}" ./configure ${{ matrix.config }}
${{ matrix.build_env }} make
${{ matrix.check_env }} make check
reprotest:
runs-on: ubuntu-latest
name: Build with reprotest on ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
arch: [x86-64, x86-32]
include:
- arch: x86-32
archdeps: "gcc-multilib g++-multilib libpcaudio-dev:i386 libsonic-dev:i386 libc6-dbg:i386"
archconfigflags: "-m32"
- arch: x86-64
archdeps: ""
archconfigflags: ''
steps:
- uses: actions/checkout@v2
- name: enable 32bit architecture
run: sudo dpkg --add-architecture i386
if: matrix.arch == 'x86-32'
- name: dependencies
run: sudo apt-get update && sudo apt-get install ${{ env.deps }} reprotest ${{ matrix.archdeps }}
- name: autoconf
run: ./autogen.sh ; chmod -x INSTALL m4/*.m4
- name: run
run: reprotest 'CFLAGS="${{ matrix.archconfigflags }}" CXXFLAGS="${{ matrix.archconfigflags }}" ./configure --without-gradle && make clean && make && make check && touch success' success
distcheck:
runs-on: ubuntu-latest
name: Run distcheck
steps:
- uses: actions/checkout@v2
- name: dependencies
run: sudo apt-get update && sudo apt-get install ${{ env.deps }}
- name: autoconf
run: ./autogen.sh ; chmod -x INSTALL m4/*.m4
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make dist
run: make dist
- name: unpack
run: mkdir unpack && tar -C unpack -xf *.tar.gz
- name: re-configure
run: cd unpack/espeak-ng-* && ./configure
- name: re-make
run: cd unpack/espeak-ng-* && make
- name: re-make check
run: cd unpack/espeak-ng-* && make check