Merge pull request #1074 from hamishcoleman/upstream

Tidy up CI and address constantly failing test
This commit is contained in:
Hamish Coleman 2023-01-27 00:41:56 +00:00 committed by GitHub
commit 4d89f048ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
@ -59,12 +59,16 @@ jobs:
fail-fast: true fail-fast: true
matrix: matrix:
flags: flags:
- -fsanitize=leak
- -fsanitize=address -static-libasan - -fsanitize=address -static-libasan
- -fsanitize=undefined -static-libubsan - -fsanitize=undefined -static-libubsan
# This option results in timeouts sending RPC requests during the
# test_integration_supernode.sh test when running in github actions.
# Disable it until more investigation can be done.
# - -fsanitize=leak
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
@ -88,6 +92,13 @@ jobs:
run: | run: |
make test make test
- if: ${{ failure() }}
name: Upload tests output
uses: actions/upload-artifact@v3
with:
name: "analysis${{ matrix.flags }}"
path: tests
test_linux: test_linux:
needs: smoketest needs: smoketest
name: Test Linux name: Test Linux
@ -97,10 +108,10 @@ jobs:
matrix: matrix:
os: os:
- ubuntu-20.04 - ubuntu-20.04
- ubuntu-18.04 - ubuntu-22.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
@ -140,7 +151,7 @@ jobs:
- if: ${{ failure() }} - if: ${{ failure() }}
name: Upload tests output name: Upload tests output
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: tests-out name: tests-out
path: tests path: tests
@ -152,13 +163,13 @@ jobs:
shell: bash shell: bash
- name: Upload gcovr report artifact - name: Upload gcovr report artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: coverage name: coverage
path: coverage path: coverage
- name: Upload data to codecov - name: Upload data to codecov
uses: codecov/codecov-action@v2 uses: codecov/codecov-action@v3
test_macos: test_macos:
needs: smoketest needs: smoketest
@ -168,11 +179,11 @@ jobs:
fail-fast: true fail-fast: true
matrix: matrix:
os: os:
- macos-10.15 - macos-12
- macos-11 - macos-11
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
@ -211,7 +222,7 @@ jobs:
- if: ${{ failure() }} - if: ${{ failure() }}
name: Upload tests output name: Upload tests output
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: tests-out name: tests-out
path: tests path: tests
@ -230,13 +241,13 @@ jobs:
shell: bash shell: bash
# - name: Upload gcovr report artifact # - name: Upload gcovr report artifact
# uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v3
# with: # with:
# name: coverage # name: coverage
# path: coverage # path: coverage
- name: Upload data to codecov - name: Upload data to codecov
uses: codecov/codecov-action@v2 uses: codecov/codecov-action@v3
test_windows: test_windows:
needs: smoketest needs: smoketest
@ -250,7 +261,7 @@ jobs:
- windows-2022 - windows-2022
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Fix Checkout - name: Fix Checkout
@ -285,7 +296,7 @@ jobs:
- if: ${{ failure() }} - if: ${{ failure() }}
name: Upload tests output name: Upload tests output
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: tests-out name: tests-out
path: tests path: tests
@ -296,7 +307,7 @@ jobs:
shell: bash shell: bash
- name: Upload data to codecov - name: Upload data to codecov
uses: codecov/codecov-action@v2 uses: codecov/codecov-action@v3
package_dpkg: package_dpkg:
name: Package for Debian/Ubuntu name: Package for Debian/Ubuntu
@ -313,7 +324,7 @@ jobs:
- i386 - i386
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
@ -347,7 +358,7 @@ jobs:
make make
- name: Upload dpkg - name: Upload dpkg
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: packages-dpkg name: packages-dpkg
path: packages/debian/*.deb path: packages/debian/*.deb
@ -359,7 +370,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
@ -388,7 +399,7 @@ jobs:
mv ../rpmbuild ./ mv ../rpmbuild ./
- name: Upload rpm - name: Upload rpm
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: packages-rpm name: packages-rpm
path: rpmbuild/RPMS/x86_64/*.rpm path: rpmbuild/RPMS/x86_64/*.rpm
@ -400,7 +411,7 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
@ -420,7 +431,7 @@ jobs:
make install DESTDIR=binaries/x86_64-pc-mingw64 make install DESTDIR=binaries/x86_64-pc-mingw64
- name: Upload binary artifacts - name: Upload binary artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: binaries name: binaries
path: binaries path: binaries
@ -438,7 +449,7 @@ jobs:
- arm64-apple-macos - arm64-apple-macos
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
@ -464,7 +475,7 @@ jobs:
- if: ${{ failure() }} - if: ${{ failure() }}
name: Upload config.log output name: Upload config.log output
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: config-log-${{ matrix.arch }} name: config-log-${{ matrix.arch }}
path: config.log path: config.log
@ -475,7 +486,7 @@ jobs:
make install DESTDIR=binaries/${{ matrix.arch }} make install DESTDIR=binaries/${{ matrix.arch }}
- name: Upload binary artifacts - name: Upload binary artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: binaries name: binaries
path: binaries path: binaries
@ -487,7 +498,7 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
@ -517,7 +528,7 @@ jobs:
make install DESTDIR=binaries/universal-apple-darwin make install DESTDIR=binaries/universal-apple-darwin
- name: Upload binary artifacts - name: Upload binary artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: binaries name: binaries
path: binaries path: binaries
@ -542,7 +553,7 @@ jobs:
- mipsel-linux-gnu - mipsel-linux-gnu
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
@ -572,7 +583,7 @@ jobs:
make install DESTDIR=binaries/${{ matrix.arch }} make install DESTDIR=binaries/${{ matrix.arch }}
- name: Upload binary artifacts - name: Upload binary artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: binaries name: binaries
path: binaries path: binaries
@ -601,7 +612,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
@ -620,7 +631,7 @@ jobs:
- name: Fetch all Artifacts - name: Fetch all Artifacts
if: steps.get_tagtype.outputs.TAGTYPE == 'tag' if: steps.get_tagtype.outputs.TAGTYPE == 'tag'
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
path: artifacts path: artifacts