Skip to content

Commit

Permalink
ci: build and test packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Apr 30, 2024
1 parent e9461b7 commit e7c1af2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/libssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,29 @@ jobs:
- run: rustup override set "nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)"
- run: rustup component add miri
- run: cargo miri test

packaging:
name: Packaging
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y openssl libssl3 libssl-dev lld

- name: Install cargo-get
run: cargo install cargo-get

- name: Install nfpm
run: |
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
echo PATH=$PATH:$HOME/go/bin >> $GITHUB_ENV
- name: Build packages
run: make package PROFILE=release

- name: Test packages
run: make test-package PROFILE=release
4 changes: 3 additions & 1 deletion rustls-libssl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ target/VERSION: ALWAYS
echo "This is rustls-libssl `git describe --always`\nDate: `date`\nIncorporating:" > $@
$(CARGO) tree >> $@

test-package: test-package-deb

test-package-deb: package-deb
mkdir -p target/dist/test/ubuntu-22
cp target/dist/rustls-libssl_*.deb \
Expand All @@ -89,4 +91,4 @@ test-package-deb: package-deb

ALWAYS: ;

.PHONY: all clean test integration format format-check package package-deb
.PHONY: all clean test integration format format-check package package-deb test-package test-package-deb

0 comments on commit e7c1af2

Please sign in to comment.