-
Notifications
You must be signed in to change notification settings - Fork 968
Add msmtp action #9807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add msmtp action #9807
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| name: msmtp Tests | ||
|
|
||
| # START OF COMMON SECTION | ||
| on: | ||
| push: | ||
| branches: [ 'master', 'main', 'release/**' ] | ||
| pull_request: | ||
| branches: [ '*' ] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| # END OF COMMON SECTION | ||
|
|
||
| jobs: | ||
| build_wolfssl: | ||
| name: Build wolfSSL | ||
| # Just to keep it the same as the testing target | ||
| if: github.repository_owner == 'wolfssl' | ||
| runs-on: ubuntu-24.04 | ||
| # This should be a safe limit for the tests to run. | ||
| timeout-minutes: 4 | ||
| steps: | ||
| - name: Build wolfSSL | ||
| uses: wolfSSL/actions-build-autotools-project@v1 | ||
| with: | ||
| path: wolfssl | ||
| configure: --enable-opensslextra --enable-opensslall | ||
| install: true | ||
|
|
||
| - name: tar build-dir | ||
| run: tar -zcf build-dir.tgz build-dir | ||
|
|
||
| - name: Upload built lib | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: wolf-install-msmtp | ||
| path: build-dir.tgz | ||
| retention-days: 5 | ||
|
|
||
| msmtp_check: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| ref: [ 1.8.28 ] | ||
| name: ${{ matrix.ref }} | ||
| if: github.repository_owner == 'wolfssl' | ||
| runs-on: ubuntu-24.04 | ||
| # This should be a safe limit for the tests to run. | ||
| timeout-minutes: 10 | ||
| needs: build_wolfssl | ||
| steps: | ||
| - name: Download lib | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: wolf-install-msmtp | ||
|
|
||
| - name: untar build-dir | ||
| run: tar -xf build-dir.tgz | ||
|
|
||
| - name: Checkout OSP | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: wolfssl/osp | ||
| path: osp | ||
|
julek-wolfssl marked this conversation as resolved.
|
||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y \ | ||
| autoconf automake libtool pkg-config gettext \ | ||
| libidn2-dev libsecret-1-dev autopoint | ||
|
julek-wolfssl marked this conversation as resolved.
|
||
|
|
||
| - name: Checkout msmtp | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: marlam/msmtp | ||
| ref: msmtp-${{ matrix.ref }} | ||
| path: msmtp-${{ matrix.ref }} | ||
|
julek-wolfssl marked this conversation as resolved.
|
||
|
|
||
| - name: Apply wolfSSL patch | ||
| working-directory: msmtp-${{ matrix.ref }} | ||
| run: patch -p1 < $GITHUB_WORKSPACE/osp/msmtp/${{ matrix.ref }}/wolfssl-msmtp-${{ matrix.ref }}.patch | ||
|
|
||
| - name: Regenerate build system | ||
| working-directory: msmtp-${{ matrix.ref }} | ||
| run: autoreconf -ivf | ||
|
|
||
| - name: Configure msmtp with wolfSSL | ||
| working-directory: msmtp-${{ matrix.ref }} | ||
| run: | | ||
| PKG_CONFIG_PATH=$GITHUB_WORKSPACE/build-dir/lib/pkgconfig \ | ||
| ./configure --with-tls=wolfssl | ||
|
|
||
| - name: Build msmtp | ||
| working-directory: msmtp-${{ matrix.ref }} | ||
| run: make -j$(nproc) | ||
|
|
||
| - name: Run msmtp tests | ||
| working-directory: msmtp-${{ matrix.ref }} | ||
| run: LD_LIBRARY_PATH=$GITHUB_WORKSPACE/build-dir/lib make check | ||
|
|
||
| - name: Confirm msmtp built with wolfSSL | ||
| run: ldd msmtp-${{ matrix.ref }}/src/msmtp | grep wolfssl | ||
|
|
||
| - name: Print test logs on failure | ||
| if: ${{ failure() }} | ||
| run: tail -n +1 msmtp-${{ matrix.ref }}/tests/*.log | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.