From ce7db50fe8fff0a77049ac8a45e018d91a874da9 Mon Sep 17 00:00:00 2001 From: Aveen Ismail Date: Tue, 10 Sep 2024 10:33:17 +0200 Subject: [PATCH] Githubactions: Add workflow to build binaries for Centos --- .github/workflows/build_and_test.yml | 2 +- .github/workflows/build_and_test_windows.yml | 2 +- .github/workflows/build_centos.yml | 32 +++++++++++++++----- .github/workflows/codeql-analysis.yml | 1 - .github/workflows/release.yml | 2 +- 5 files changed, 27 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 92f0b8bce..ee9960fc7 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -1,6 +1,6 @@ name: Build and Test -on: [push, pull_request] +on: [pull_request] jobs: build_debian_derivatives: diff --git a/.github/workflows/build_and_test_windows.yml b/.github/workflows/build_and_test_windows.yml index 2f121b352..a995c45d4 100644 --- a/.github/workflows/build_and_test_windows.yml +++ b/.github/workflows/build_and_test_windows.yml @@ -1,6 +1,6 @@ name: Build and Test - Windows -on: [push, pull_request] +on: [pull_request] jobs: source: diff --git a/.github/workflows/build_centos.yml b/.github/workflows/build_centos.yml index b1fafd4b7..8892bc74d 100644 --- a/.github/workflows/build_centos.yml +++ b/.github/workflows/build_centos.yml @@ -1,4 +1,4 @@ -name: Release binaries +name: CentOS binaries # This machine tests building the software on a both 32 and 64 Windows architecture. on: [push] @@ -9,10 +9,13 @@ jobs: strategy: fail-fast: false matrix: - environment: [ - "centos:7", - "centos:8", - ] + include: + - environment: "centos:7" + cc: "gcc" + upload_for_test: "false" + - environment: "centos:8" + cc: "gcc" + upload_for_test: "false" name: build on ${{ matrix.environment }} runs-on: ubuntu-latest @@ -20,10 +23,23 @@ jobs: steps: + - name: Setup OS + run: | + curl https://vault.centos.org/7.9.2009/os/x86_64/RPM-GPG-KEY-CentOS-7 > centos7.key + pwd + ls + ls /etc/yum.repos.d + + cat /etc/yum.repos.d/CentOS-Base.repo + echo "--------------" + cat /etc/yum.repos.d/CentOS-Vault.repo + - name: clone the Yubico/yubihsm-shell repository - uses: actions/checkout@v3 - with: - path: yubihsm-shell + run: | + yum -y install git + git clone https://github.com/Yubico/yubihsm-shell.git + pwd + ls yubihsm-shell - name: apply environment specific changes to CMakeLists.txt working-directory: yubihsm-shell diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a5a04e60c..912476c03 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -2,7 +2,6 @@ name: "CodeQL" on: push: - pull_request: schedule: - cron: '27 22 * * 0' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 24d3747cc..9501b4712 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ name: Release binaries # This machine tests building the software on a both 32 and 64 Windows architecture. -on: [push] +on: [pull_request] jobs: