Merge branch 'main' into flow

This commit is contained in:
Alexey 2026-03-24 22:00:51 +03:00 committed by GitHub
commit 80cb1bc221
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 40 additions and 7 deletions

View File

@ -23,7 +23,7 @@ jobs:
# GNU / glibc # GNU / glibc
# ========================== # ==========================
build-gnu: build-gnu:
name: GNU ${{ matrix.target }} name: GNU ${{ matrix.asset }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
@ -35,8 +35,15 @@ jobs:
include: include:
- target: x86_64-unknown-linux-gnu - target: x86_64-unknown-linux-gnu
asset: telemt-x86_64-linux-gnu asset: telemt-x86_64-linux-gnu
cpu: baseline
- target: x86_64-unknown-linux-gnu
asset: telemt-x86_64-v3-linux-gnu
cpu: v3
- target: aarch64-unknown-linux-gnu - target: aarch64-unknown-linux-gnu
asset: telemt-aarch64-linux-gnu asset: telemt-aarch64-linux-gnu
cpu: generic
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -72,11 +79,19 @@ jobs:
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
export CC=aarch64-linux-gnu-gcc export CC=aarch64-linux-gnu-gcc
export CXX=aarch64-linux-gnu-g++ export CXX=aarch64-linux-gnu-g++
export RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc" export RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc -C lto=fat -C panic=abort"
else else
export CC=clang export CC=clang
export CXX=clang++ export CXX=clang++
export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=lld"
if [ "${{ matrix.cpu }}" = "v3" ]; then
CPU_FLAGS="-C target-cpu=x86-64-v3"
else
CPU_FLAGS="-C target-cpu=x86-64"
fi
export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=lld -C lto=fat -C panic=abort $CPU_FLAGS"
fi fi
cargo build --release --target ${{ matrix.target }} cargo build --release --target ${{ matrix.target }}
@ -102,7 +117,7 @@ jobs:
# MUSL # MUSL
# ========================== # ==========================
build-musl: build-musl:
name: MUSL ${{ matrix.target }} name: MUSL ${{ matrix.asset }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
@ -114,8 +129,15 @@ jobs:
include: include:
- target: x86_64-unknown-linux-musl - target: x86_64-unknown-linux-musl
asset: telemt-x86_64-linux-musl asset: telemt-x86_64-linux-musl
cpu: baseline
- target: x86_64-unknown-linux-musl
asset: telemt-x86_64-v3-linux-musl
cpu: v3
- target: aarch64-unknown-linux-musl - target: aarch64-unknown-linux-musl
asset: telemt-aarch64-linux-musl asset: telemt-aarch64-linux-musl
cpu: generic
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -177,13 +199,21 @@ jobs:
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-musl" ]; then if [ "${{ matrix.target }}" = "aarch64-unknown-linux-musl" ]; then
export CC=aarch64-linux-musl-gcc export CC=aarch64-linux-musl-gcc
export CC_aarch64_unknown_linux_musl=aarch64-linux-musl-gcc export CC_aarch64_unknown_linux_musl=aarch64-linux-musl-gcc
export RUSTFLAGS="-C target-feature=+crt-static -C linker=aarch64-linux-musl-gcc" export RUSTFLAGS="-C target-feature=+crt-static -C linker=aarch64-linux-musl-gcc -C lto=fat -C panic=abort"
else else
export CC=musl-gcc export CC=musl-gcc
export CC_x86_64_unknown_linux_musl=musl-gcc export CC_x86_64_unknown_linux_musl=musl-gcc
export RUSTFLAGS="-C target-feature=+crt-static"
if [ "${{ matrix.cpu }}" = "v3" ]; then
CPU_FLAGS="-C target-cpu=x86-64-v3"
else
CPU_FLAGS="-C target-cpu=x86-64"
fi
export RUSTFLAGS="-C target-feature=+crt-static -C lto=fat -C panic=abort $CPU_FLAGS"
fi fi
cargo build --release --target ${{ matrix.target }} cargo build --release --target ${{ matrix.target }}
- name: Package - name: Package

View File

@ -3,6 +3,9 @@ name = "telemt"
version = "3.3.31" version = "3.3.31"
edition = "2024" edition = "2024"
[profile.release]
codegen-units = 1
[features] [features]
redteam_offline_expected_fail = [] redteam_offline_expected_fail = []