Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: fix accidentally broken centos-fedora workflow #2208

Merged
merged 2 commits into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 77 additions & 12 deletions .github/workflows/centos-and-fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,15 @@ jobs:
if: env.BUILD_MODE != 'coverage' && env.SHARED_LIBS == 'on'
run: cmake --install build

- name: Checkout shell test framework
if: env.BUILD_MODE != 'coverage' && env.SHARED_LIBS == 'on'
- name: Checkout shell test framework v3
if: env.BUILD_MODE != 'coverage' && env.SHARED_LIBS == 'on' && matrix.image.container == 'centos-7-amd64'
uses: actions/checkout@v3
with:
repository: kward/shunit2
path: ci/tests/shunit2

- name: Checkout shell test framework v4
if: env.BUILD_MODE != 'coverage' && env.SHARED_LIBS == 'on' && matrix.image.container != 'centos-7-amd64'
uses: actions/checkout@v4
with:
repository: kward/shunit2
Expand Down Expand Up @@ -235,7 +242,7 @@ jobs:
- name: Install rpm tools
run: yum -y install rpm-build

- name: Checkout v3
- name: Checkout v3
if: matrix.image.container == 'centos-7-amd64'
uses: actions/checkout@v3
with:
Expand All @@ -253,17 +260,35 @@ jobs:
- name: Package SRPM
run: cpack -B build/SRPM -G RPM --config build/CPackSourceConfig.cmake

- name: Upload SRPM
- name: Upload SRPM v3
if: matrix.image.container == 'centos-7-amd64'
uses: actions/upload-artifact@v3
with:
name: 'SRPM ${{ matrix.image.name }}'
path: 'build/SRPM/*.src.rpm'
retention-days: 5

- name: Upload SRPM v4
if: matrix.image.container != 'centos-7-amd64'
uses: actions/upload-artifact@v4
with:
name: 'SRPM ${{ matrix.image.name }}'
path: 'build/SRPM/*.src.rpm'
retention-days: 5

- name: Stash packaging tests
- name: Stash packaging tests v3
if: matrix.image.container == 'centos-7-amd64'
uses: actions/upload-artifact@v3
with:
name: 'tests-${{ matrix.image.name }}'
path: 'ci/tests/**'
retention-days: 1

- name: Stash packaging tests v4
if: matrix.image.container != 'centos-7-amd64'
uses: actions/upload-artifact@v4
with:
name: 'tests-${{ matrix.image.container }}'
name: 'tests-${{ matrix.image.name }}'
path: 'ci/tests/**'
retention-days: 1

Expand All @@ -287,7 +312,15 @@ jobs:
- name: Install rpm tools
run: yum -y install rpm-build

- name: Download SRPM
- name: Download SRPM v3
if: matrix.image.container == 'centos-7-amd64'
uses: actions/download-artifact@v3
with:
name: 'SRPM ${{ matrix.image.name }}'
path: ~/rpmbuild/SRPMS

- name: Download SRPM v4
if: matrix.image.container != 'centos-7-amd64'
uses: actions/download-artifact@v4
with:
name: 'SRPM ${{ matrix.image.name }}'
Expand All @@ -307,7 +340,16 @@ jobs:
- name: Package rpm
run: cpack -G RPM -B ~/rpmbuild/SOURCES/RPMS --config ~/rpmbuild/SOURCES/BUILD/CPackConfig.cmake

- name: Upload Artifact
- name: Upload Artifact v3
if: matrix.image.container == 'centos-7-amd64'
uses: actions/upload-artifact@v3
with:
name: 'RPM ${{ matrix.image.name}}'
path: '~/rpmbuild/SOURCES/RPMS/*.rpm'
retention-days: 5

- name: Upload Artifact v4
if: matrix.image.container != 'centos-7-amd64'
uses: actions/upload-artifact@v4
with:
name: 'RPM ${{ matrix.image.name}}'
Expand Down Expand Up @@ -360,21 +402,44 @@ jobs:
if: matrix.image.container == 'fedora:35'
run: sudo yum -y install findutils

- name: Download rnp rpms
- name: Download rnp rpms v3
if: matrix.image.container == 'centos:7'
uses: actions/download-artifact@v3
with:
name: 'RPM ${{ matrix.image.name}}'

- name: Download rnp rpms v4
if: matrix.image.container != 'centos:7'
uses: actions/download-artifact@v4
with:
name: 'RPM ${{ matrix.image.name}}'

- name: Checkout shell test framework
- name: Checkout shell test framework v3
if: matrix.image.container == 'centos:7'
uses: actions/checkout@v3
with:
repository: kward/shunit2
path: ci/tests/shunit2

- name: Checkout shell test framework v4
if: matrix.image.container != 'centos:7'
uses: actions/checkout@v4
with:
repository: kward/shunit2
path: ci/tests/shunit2

- name: Unstash tests
- name: Unstash tests v3
if: matrix.image.container == 'centos:7'
uses: actions/download-artifact@v3
with:
name: tests-${{ matrix.image.name }}
path: ci/tests

- name: Unstash tests v4
if: matrix.image.container != 'centos:7'
uses: actions/download-artifact@v4
with:
name: tests
name: tests-${{ matrix.image.name }}
path: ci/tests

- name: Run rpm tests
Expand Down
1 change: 1 addition & 0 deletions src/lib/crypto/symmetric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#include <stdlib.h>
#include <assert.h>
#include <botan/ffi.h>
#include <botan/build.h>
#include "utils.h"

static const char *
Expand Down
Loading