tmp: build golden packages #238
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rustls-libssl | |
permissions: | |
contents: read | |
on: | |
push: | |
pull_request: | |
merge_group: | |
schedule: | |
- cron: '15 12 * * 3' | |
defaults: | |
run: | |
working-directory: rustls-libssl | |
jobs: | |
release_packages: | |
name: Produce release packages | |
runs-on: ubuntu-latest | |
container: ${{ matrix.container }} | |
strategy: | |
matrix: | |
include: | |
- container: ubuntu:24.04 | |
package: deb | |
# - container: ubuntu:22.04 | |
# package: deb | |
# - container: fedora:40 | |
# package: rpm | |
steps: | |
- name: Install prerequisites (debian-like) | |
if: matrix.package == 'deb' | |
working-directory: / | |
run: | | |
apt-get update | |
apt-get install -y curl build-essential git | |
- 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: | | |
apt-get update | |
apt-get install -y openssl libssl3 libssl-dev lld golang-go | |
cargo install cargo-get | |
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest | |
- name: Build package | |
run: | | |
make package-${{ matrix.package }} PROFILE=release NFPM=$HOME/go/bin/nfpm | |
- name: Huh? | |
run: find target/dist -ls | |
- name: Archive package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.package }} package built on ${{ matrix.container }} | |
path: target/dist/*.${{ matrix.package }} |