Skip to content

Commit

Permalink
Githubactions: Add workflow to build binaries for Centos
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Sep 10, 2024
1 parent 511f3b4 commit ce7db50
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build and Test

on: [push, pull_request]
on: [pull_request]

jobs:
build_debian_derivatives:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test_windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build and Test - Windows

on: [push, pull_request]
on: [pull_request]

jobs:
source:
Expand Down
32 changes: 24 additions & 8 deletions .github/workflows/build_centos.yml
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -9,21 +9,37 @@ 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
container: ${{ matrix.environment }}

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
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: "CodeQL"

on:
push:
pull_request:
schedule:
- cron: '27 22 * * 0'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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:

Expand Down

0 comments on commit ce7db50

Please sign in to comment.