Skip to content

Commit b7ef465

Browse files
Build Artifacts with OpenSSL version.
This adjusts the build to produce artifacts with the OpenSSL version.
1 parent 81321ac commit b7ef465

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,20 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-latest
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-22.04, ubuntu-24.04]
11+
812
steps:
913
- uses: actions/checkout@v4
1014

1115
- name: Install pre-requirements
1216
run: sudo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -q -y
13-
17+
18+
- name: Get OpenSSL Version
19+
run: echo "openssl_version=$(openssl version | awk '{print $2}')" >> "$GITHUB_ENV"
20+
1421
- name: Check format
1522
run: cargo fmt --check
1623

@@ -41,13 +48,13 @@ jobs:
4148
uses: actions/upload-artifact@v4
4249
with:
4350
path: target/generate-rpm/
44-
name: ${{ env.rpm_name }}
51+
name: rpm-openssl-${{ env.openssl_version }}-${{ env.rpm_name }}
4552

46-
- name: Upload Deb
53+
- name: Upload DEB
4754
uses: actions/upload-artifact@v4
4855
with:
4956
path: target/debian/${{ env.deb_name }}
50-
name: ${{ env.deb_name }}
57+
name: deb-openssl-${{ env.openssl_version }}-${{ env.deb_name }}
5158

5259
release:
5360
if: contains(github.ref, 'tags/v')
@@ -60,10 +67,12 @@ jobs:
6067
with:
6168
path: ./
6269
merge-multiple: true
70+
6371
- name: List Files
6472
run: |
6573
pwd
6674
ls -lah ./
75+
6776
- name: Create Release
6877
id: create_release
6978
uses: ncipollo/release-action@v1
@@ -75,5 +84,5 @@ jobs:
7584
allowUpdates: true
7685
artifactErrorsFailBuild: false
7786
artifacts: |
78-
*.rpm
79-
*.deb
87+
rpm-openssl-*.rpm
88+
deb-openssl-*.deb

0 commit comments

Comments
 (0)