Skip to content

Commit

Permalink
Merge branch 'master' into fpgamatt/fix-openssl-version-check
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolberg authored Jan 16, 2025
2 parents 08f264f + 1751ad8 commit 878adff
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 35 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-debs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
strategy:
matrix:
distro: [ubuntu22]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Build ${{ matrix.distro }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build Docker Image
run: docker build . -f docker/${{ matrix.distro }}/Dockerfile -t opae-${{ matrix.distro }}
- name: Build DEBs
Expand All @@ -40,7 +40,7 @@ jobs:
docker run --rm -v ${{ github.workspace }}:/opae-${{ matrix.distro }}/opae-sdk --workdir /opae-${{ matrix.distro }}/opae-sdk --entrypoint /bin/bash opae-${{ matrix.distro }} -c "/scripts/test-debs.sh"
- name: Upload Artifact
if: ${{ github.event_name != 'pull_request'}}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OPAE-${{ matrix.distro }}
path:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-rpms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
strategy:
matrix:
distro: [fedora39, fedora40, rockylinux8, rockylinux9]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Build ${{ matrix.distro }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build Docker Image
run: docker build . -f docker/${{ matrix.distro }}/Dockerfile -t opae-${{ matrix.distro }}
- name: Build RPMs
Expand All @@ -40,7 +40,7 @@ jobs:
docker run --rm -v ${{ github.workspace }}:/opae-${{ matrix.distro }}/opae-sdk --workdir /opae-${{ matrix.distro }}/opae-sdk --entrypoint /bin/bash opae-${{ matrix.distro }} -c "/scripts/test-rpms.sh"
- name: Upload Artifact
if: ${{ github.event_name != 'pull_request'}}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OPAE-${{ matrix.distro }}
path:
Expand Down
24 changes: 13 additions & 11 deletions .github/workflows/ccpp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ on:

jobs:
coding-style:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
lang-type: [c, cpp]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: bugfix
run: sudo rm -f /var/cache/debconf/config.dat
- name: disable_snap
Expand All @@ -60,16 +60,18 @@ jobs:
- name: upgrade
run: sudo -E DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
- name: install
run: sudo -E DEBIAN_FRONTEND=noninteractive apt-get install -y clang-format
run: |
sudo -E DEBIAN_FRONTEND=noninteractive apt-get install -y clang-format linux-headers-generic
install -t ${{ github.workspace }}/scripts /usr/src/linux-headers-*-generic/scripts/checkpatch.pl
- name: test ${{ matrix.lang-type }}
run: ${{ github.workspace }}/scripts/test-codingstyle-all.sh ${{ matrix.lang-type }}
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
build-type: [Debug, Release, RelWithDebInfo]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: bugfix
run: sudo rm -f /var/cache/debconf/config.dat
- name: disable_snap
Expand All @@ -91,9 +93,9 @@ jobs:
- name: make ${{ matrix.build-type }}
run: cd ${{ github.workspace }}/.build && make -j $(nproc)
test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: bugfix
run: sudo rm -f /var/cache/debconf/config.dat
- name: disable_snap
Expand All @@ -118,9 +120,9 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: unittests/coverage.info.cleaned
build-doc:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: update
run: sudo apt-get update -y
- name: Build Docker image
Expand All @@ -136,7 +138,7 @@ jobs:
working-directory: ${{ github.workspace }}/mybuild_docs
run: ${{ github.workspace }}/scripts/push-documentation.sh "${GITHUB_TAG##*/}"
- name: Archive html docs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: docs
path: mybuild_docs/sphinx/html
Expand All @@ -146,7 +148,7 @@ jobs:
args: --verbose --no-progress mybuild_docs/sphinx/html
output: ${{ github.workspace }}/lychee
- name: Archive lychee results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: link-checker
path: ${{ github.workspace }}/lychee
2 changes: 1 addition & 1 deletion .github/workflows/docker-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- .github/workflows/docker-rpm.yml
jobs:
build_docker_image:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Build a Docker image and RPM file
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/no-ccpp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
build-type: [Debug, Release, RelWithDebInfo]
steps:
- run: exit 0
test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- run: exit 0
2 changes: 1 addition & 1 deletion .github/workflows/no-python-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
analyze:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pacsign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ on:
- '.github/workflows/pacsign.yml'
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/python-static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ on:

jobs:
analyze:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Update
run: sudo apt-get update -y
- name: Setup python${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down Expand Up @@ -53,9 +53,9 @@ jobs:
--format csv \
| tee ${{ github.workspace }}/bandit.log.csv
- name: Archive results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: static-analysis
name: python-static-analysis-${{ matrix.python-version }}
path: |
${{ github.workspace }}/pylint.log
${{ github.workspace }}/flake8.log
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: update
run: sudo apt-get update -y
- name: upgrade
Expand All @@ -33,7 +33,7 @@ jobs:
OPAE_EXPLICIT_INITIALIZE: 1
LD_LIBRARY_PATH: ${{ github.workspace }}/.build/lib
- name: Archive Results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: valgrind
path: ${{ github.workspace }}/.build/valgrind
6 changes: 3 additions & 3 deletions scripts/cover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ rm -rf coverage_files/*
make -j $(nproc)

lcov --directory . --zerocounters
lcov -c -i -d . -o coverage.base 2> /dev/null
lcov -c -i -d . -o coverage.base

LD_LIBRARY_PATH=${PWD}/lib \
CTEST_OUTPUT_ON_FAILURE=1 \
Expand All @@ -29,7 +29,7 @@ ctest --timeout 180

find . \( -iname "*.gcda" -or -iname "*.gcno" \) -exec chmod 664 '{}' \;

lcov --directory . --capture --output-file coverage.info 2> /dev/null
lcov --directory . --capture --output-file coverage.info
lcov -a coverage.base -a coverage.info --output-file coverage.total

lcov --remove coverage.total \
Expand All @@ -48,5 +48,5 @@ lcov --remove coverage.total \
'*samples/n5010-test/**' \
--output-file coverage.info.cleaned

genhtml --function-coverage -o coverage_report coverage.info.cleaned 2> /dev/null
genhtml --function-coverage -o coverage_report coverage.info.cleaned
exit $?

0 comments on commit 878adff

Please sign in to comment.