From 6ea8ba25c4b01fcf0ff7c6974cf4cc8cf32eafe3 Mon Sep 17 00:00:00 2001 From: David Osipov Date: Fri, 20 Mar 2026 02:27:21 +0400 Subject: [PATCH] Refactor OpenBSD build workflow for clarity --- .github/workflows/build-openbsd.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-openbsd.yml b/.github/workflows/build-openbsd.yml index 63bd063..3d730be 100644 --- a/.github/workflows/build-openbsd.yml +++ b/.github/workflows/build-openbsd.yml @@ -1,40 +1,32 @@ -name: Build telemt for OpenBSD aarch64 (Manual) +name: Build telemt for OpenBSD aarch64 on: - workflow_dispatch: # Исключительно ручной запуск через веб-интерфейс или API + workflow_dispatch: jobs: build: - runs-on: ubuntu-latest - + runs-on: ubuntu-latest + steps: - name: Checkout repository uses: actions/checkout@v4 - name: Compile in OpenBSD VM - id: compile uses: vmactions/openbsd-vm@v1 with: release: "7.8" arch: aarch64 - mem: 6144 usesh: true sync: sshfs - disable-cache: true + envs: 'RUSTFLAGS' prepare: | pkg_add rust run: | - if ! grep -q 'lto = "thin"' Cargo.toml; then - echo '' >> Cargo.toml - echo '[profile.release]' >> Cargo.toml - echo 'lto = "thin"' >> Cargo.toml - fi - - export RUSTFLAGS="-C target-cpu=cortex-a53 -C target-feature=+aes,+sha2,+crc -C opt-level=3" - cargo build --release + env: + RUSTFLAGS: "-C target-cpu=cortex-a53 -C target-feature=+aes,+pmull,+sha2,+sha1,+crc -C opt-level=3" - - name: Extract Artifact + - name: Upload artifact uses: actions/upload-artifact@v4 with: name: telemt-openbsd-aarch64