diff --git a/.github/workflows/libssl.yaml b/.github/workflows/libssl.yaml index 18b73b8..000d388 100644 --- a/.github/workflows/libssl.yaml +++ b/.github/workflows/libssl.yaml @@ -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 diff --git a/rustls-libssl/Makefile b/rustls-libssl/Makefile index bfb2e78..f0f2ee0 100644 --- a/rustls-libssl/Makefile +++ b/rustls-libssl/Makefile @@ -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 \ @@ -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