From f8a0c6d5cd199d42ff9b2e247e5aaa91e7581c5b Mon Sep 17 00:00:00 2001 From: Kirill Shakirov <38155247+Nyanraltotlapun@users.noreply.github.com> Date: Mon, 6 Apr 2026 22:47:18 +0200 Subject: [PATCH] Add build on FreeBSD action. --- .github/workflows/rust.yml | 30 ++++++++++++++++++++++++++++-- nyash_server/Cargo.toml | 2 +- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7308399..9e4e0f7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,7 +16,7 @@ env: CARGO_TERM_COLOR: always jobs: - build-m1: + - build-m1: runs-on: macos-latest steps: - uses: actions/checkout@v4 @@ -31,5 +31,31 @@ jobs: - name: Upload Binary uses: actions/upload-artifact@v4 with: - name: m1-binary + name: nyash-client-aarch64-apple-darwin path: nyash_client/target/aarch64-apple-darwin/release/nyash-client + + - build-freebsd: + name: Release - FreeBSD-x86_64 + strategy: + matrix: + platform: + - os-name: FreeBSD-x86_64 + runs-on: ubuntu-24.04 + target: x86_64-unknown-freebsd + runs-on: ${{ matrix.platform.runs-on }} + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Build binary + uses: houseabsolute/actions-rust-cross@v1 + with: + command: build + target: ${{ matrix.platform.target }} + args: "---manifest-path nyash_server/Cargo.toml -locked --release" + strip: true + + - name: Upload Server Binary + uses: actions/upload-artifact@v4 + with: + name: nyash-server-x86_64-unknown-freebsd + path: nyash_server/target/x86_64-unknown-freebsd/release/nyash-server diff --git a/nyash_server/Cargo.toml b/nyash_server/Cargo.toml index 60e75ba..d1d1036 100644 --- a/nyash_server/Cargo.toml +++ b/nyash_server/Cargo.toml @@ -5,7 +5,7 @@ edition = "2024" [[bin]] # Bin to run the HelloWorld gRPC server -name = "nyash_server" +name = "nyash-server" path = "src/server.rs"