From 92ab9d0f8db3453069bce97afe35d9fe29758225 Mon Sep 17 00:00:00 2001 From: Joe Birr-Pixton Date: Tue, 13 Aug 2024 12:40:36 +0100 Subject: [PATCH] tmp: build golden packages --- .github/workflows/libssl.yaml | 43 ++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/.github/workflows/libssl.yaml b/.github/workflows/libssl.yaml index 2f21355..3db63e1 100644 --- a/.github/workflows/libssl.yaml +++ b/.github/workflows/libssl.yaml @@ -176,7 +176,7 @@ jobs: - run: cargo miri test packaging: - name: Packaging + name: Test packaging (ubuntu) runs-on: ubuntu-latest steps: - name: Checkout sources @@ -200,3 +200,44 @@ jobs: - name: Test packages run: make test-package PROFILE=release + + release_packages: + name: Produce release packages + runs-on: ubuntu-latest + image: ${{ matrix.image }} + strategy: + matrix: + include: + - image: ubuntu:22.04 + package: deb + - image: ubuntu:24.04 + package: deb + # - image: fedora:40 + # package: rpm + + steps: + - name: Checkout sources + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Install stable rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Install build dependencies (debian-like) + if: matrix.package == 'deb' + run: | + sudo apt-get update + sudo apt-get install -y openssl libssl3 libssl-dev lld + cargo install cargo-get + go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest + echo PATH=$PATH:$HOME/go/bin >> $GITHUB_ENV + + - name: Build package + run: make package-${{ matrix.package }} PROFILE=release + + - name: Archive package + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.package }} package built on ${{ matrix.image }} + path: target/dist/*.${{ matrix.package }}