Publish latest imaptest #29
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: Publish latest imaptest | |
on: | |
pull_request: | |
push: | |
paths: | |
- 'src/**' | |
workflow_dispatch: | |
jobs: | |
build_matrix: | |
strategy: | |
matrix: | |
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04] | |
name: Build | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout imaptest | |
uses: actions/checkout@v4 | |
with: | |
path: imaptest | |
- name: Checkout dovecot | |
uses: actions/checkout@v4 | |
with: | |
repository: dovecot/core | |
path: core | |
- name: Install gettext (missing from GH Actions image) | |
run: | | |
sudo apt install -y gettext | |
- name: Build dovecot libraries | |
working-directory: ${{ github.workspace }}/core | |
run: | | |
./autogen.sh | |
./configure | |
make -j8 | |
- name: Build imaptest | |
working-directory: ${{ github.workspace }}/imaptest | |
run: | | |
./autogen.sh | |
./configure --with-dovecot=../core | |
make -j8 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: imaptest | |
path: imaptest/src/imaptest | |
consume: | |
needs: build_matrix | |
strategy: | |
matrix: | |
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04] | |
runs-on: ubuntu-latest | |
name: Consume | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: imaptest-${{matrix.os}} | |
path: ./ | |
- name: Make imaptest executable | |
run: | | |
chmod +x imaptest-${{matrix.os}} | |
- name: TAR/GZ imaptest | |
run: | | |
tar czfv imaptest-${{matrix.os}}.tgz imaptest | |
- name: Generate SHA256 checksum | |
run: | | |
sha256sum imaptest-${{matrix.os}}.tgz >> SHA256SUMS.txt | |
publish: | |
needs: consume | |
runs-on: ubuntu-latest | |
name: Publish | |
steps: | |
- name: Register files | |
run: | | |
find SHA256SUMS.txt imaptest-*.tgz > files.txt | |
- name: List files | |
run: cat files.txt | |
- name: Update latest Release | |
uses: andelf/nightly-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: test-release | |
name: 'ImapTest Latest Release' | |
draft: true | |
body: | | |
ImapTest semi-static builds. These work on most machines with matching | |
libc. | |
files: files.txt |