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 c82412dc4c
5 changed files with 19 additions and 17 deletions
@@ -1,7 +1,7 @@
version: 2 version: 2
updates: updates:
- package-ecosystem: "cargo" - package-ecosystem: "cargo"
directory: "/" directory: "/filtermail"
schedule: schedule:
interval: "monthly" interval: "monthly"
cooldown: cooldown:
@@ -27,11 +27,11 @@ jobs:
with: with:
toolchain: nightly toolchain: nightly
components: rustfmt components: rustfmt
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2 - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- uses: taiki-e/install-action@2ca9b94c269419b7b0c711c09d0b21c4e1d51145 # v2 - uses: taiki-e/install-action@2ca9b94c269419b7b0c711c09d0b21c4e1d51145 # v2.83.1
with: with:
tool: taplo-cli tool: taplo-cli
- run: taplo format --check && cargo fmt --check - run: cd filtermail && taplo format --check && cargo fmt --check
cargo-machete: cargo-machete:
name: Check Unused Dependencies name: Check Unused Dependencies
@@ -58,8 +58,8 @@ jobs:
with: with:
toolchain: ${{ matrix.toolchain }} toolchain: ${{ matrix.toolchain }}
components: clippy components: clippy
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2 - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- run: cargo clippy - run: cd filtermail && cargo clippy
env: env:
RUSTUP_TOOLCHAIN: ${{ matrix.toolchain }} RUSTUP_TOOLCHAIN: ${{ matrix.toolchain }}
@@ -73,8 +73,8 @@ jobs:
- uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # master - uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # master
with: with:
toolchain: stable toolchain: stable
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2 - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- run: cargo test - run: cd filtermail && cargo test
relay-test: relay-test:
name: Test the relay with cmlxc and custom filtermail name: Test the relay with cmlxc and custom filtermail
@@ -84,10 +84,10 @@ jobs:
sudo apt-get update && sudo apt-get install -y musl-tools sudo apt-get update && sudo apt-get install -y musl-tools
rustup target add x86_64-unknown-linux-musl rustup target add x86_64-unknown-linux-musl
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc export CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc
cd repo && RUSTFLAGS="-Ctarget-feature=+crt-static -Clink-self-contained=yes" cargo build --release --target x86_64-unknown-linux-musl cd repo/filtermail && RUSTFLAGS="-Ctarget-feature=+crt-static -Clink-self-contained=yes" cargo build --release --target x86_64-unknown-linux-musl
cmlxc init cmlxc init
cmlxc -v deploy-cmdeploy --filtermail repo/target/x86_64-unknown-linux-musl/release/filtermail cm0 cmlxc -v deploy-cmdeploy --filtermail repo/filtermail/target/x86_64-unknown-linux-musl/release/filtermail cm0
cmlxc -v deploy-cmdeploy --filtermail repo/target/x86_64-unknown-linux-musl/release/filtermail --type ipv4 cm1 cmlxc -v deploy-cmdeploy --filtermail repo/filtermail/target/x86_64-unknown-linux-musl/release/filtermail --type ipv4 cm1
cmlxc -v deploy-madmail mad0 cmlxc -v deploy-madmail mad0
# single-relay tests # single-relay tests
@@ -1,9 +1,11 @@
on: on:
release: tags:
types: [published] - 'filtermail-*'
jobs: jobs:
build: build:
permissions: {}
name: Build binaries. name: Build binaries.
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -14,14 +16,14 @@ jobs:
with: with:
toolchain: stable toolchain: stable
targets: aarch64-unknown-linux-musl,x86_64-unknown-linux-musl targets: aarch64-unknown-linux-musl,x86_64-unknown-linux-musl
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2 - uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
- uses: taiki-e/install-action@2ca9b94c269419b7b0c711c09d0b21c4e1d51145 # v2 - uses: taiki-e/install-action@2ca9b94c269419b7b0c711c09d0b21c4e1d51145 # v2.83.1
with: with:
tool: cargo-zigbuild tool: cargo-zigbuild
- name: Build - name: Build
run: | run: |
RUSTFLAGS="-Ctarget-feature=+crt-static -Clink-self-contained=yes" \ RUSTFLAGS="-Ctarget-feature=+crt-static -Clink-self-contained=yes" \
cargo zigbuild \ cd filtermail && cargo zigbuild \
--release \ --release \
--target x86_64-unknown-linux-musl \ --target x86_64-unknown-linux-musl \
--target aarch64-unknown-linux-musl --target aarch64-unknown-linux-musl
+1
View File
@@ -78,6 +78,7 @@ docs/_build/
# PyBuilder # PyBuilder
.pybuilder/ .pybuilder/
target/ target/
filtermail/target/
# Jupyter Notebook # Jupyter Notebook
.ipynb_checkpoints .ipynb_checkpoints
-1
View File
@@ -1 +0,0 @@
/target