Skip to content

Commit

Permalink
tmp: build golden packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Aug 13, 2024
1 parent 7885457 commit 1679685
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion .github/workflows/libssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
- run: cargo miri test

packaging:
name: Packaging
name: Test packaging (ubuntu)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand All @@ -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 }}

0 comments on commit 1679685

Please sign in to comment.