mirror of https://github.com/telemt/telemt.git
Refactor OpenBSD build workflow for clarity
This commit is contained in:
parent
3f3bf5bbd2
commit
6ea8ba25c4
|
|
@ -1,40 +1,32 @@
|
||||||
name: Build telemt for OpenBSD aarch64 (Manual)
|
name: Build telemt for OpenBSD aarch64
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Исключительно ручной запуск через веб-интерфейс или API
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Compile in OpenBSD VM
|
- name: Compile in OpenBSD VM
|
||||||
id: compile
|
|
||||||
uses: vmactions/openbsd-vm@v1
|
uses: vmactions/openbsd-vm@v1
|
||||||
with:
|
with:
|
||||||
release: "7.8"
|
release: "7.8"
|
||||||
arch: aarch64
|
arch: aarch64
|
||||||
mem: 6144
|
|
||||||
usesh: true
|
usesh: true
|
||||||
sync: sshfs
|
sync: sshfs
|
||||||
disable-cache: true
|
envs: 'RUSTFLAGS'
|
||||||
prepare: |
|
prepare: |
|
||||||
pkg_add rust
|
pkg_add rust
|
||||||
run: |
|
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
|
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
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: telemt-openbsd-aarch64
|
name: telemt-openbsd-aarch64
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue