chore: integrate filtermail's .github directory into relay's

This commit is contained in:
missytake
2026-07-26 12:30:08 +02:00
parent 827bd5fc4f
commit 3fd30989cd
9 changed files with 71 additions and 68 deletions
+7 -19
View File
@@ -1,4 +1,4 @@
name: CI
name: cmdeploy CI
on:
# Triggers when a PR is merged into main or a direct push occurs
@@ -18,24 +18,8 @@ concurrency:
jobs:
tox:
name: isolated chatmaild tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
# Checkout pull request HEAD commit instead of merge commit
# Otherwise `test_deployed_state` will be unhappy.
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- name: download filtermail
run: curl -L https://github.com/chatmail/filtermail/releases/download/v0.7.4/filtermail-x86_64 -o /usr/local/bin/filtermail && chmod +x /usr/local/bin/filtermail
- name: run chatmaild tests
working-directory: chatmaild
run: pipx run tox
scripts:
name: deploy-chatmail tests
cmdeploy:
name: cmdeploy tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
@@ -61,6 +45,10 @@ jobs:
with:
cmlxc_version: main
cmlxc_commands: |
sudo apt-get update && sudo apt-get install -y musl-tools
rustup target add x86_64-unknown-linux-musl
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc
cd repo/filtermail && RUSTFLAGS="-Ctarget-feature=+crt-static -Clink-self-contained=yes" cargo build --release --target x86_64-unknown-linux-musl
cmlxc init
# single cmdeploy relay test
cmlxc -v deploy-cmdeploy --source ./repo cm0