Add build on FreeBSD action.
This commit is contained in:
@@ -16,7 +16,7 @@ env:
|
|||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-m1:
|
- build-m1:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -31,5 +31,31 @@ jobs:
|
|||||||
- name: Upload Binary
|
- name: Upload Binary
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: m1-binary
|
name: nyash-client-aarch64-apple-darwin
|
||||||
path: nyash_client/target/aarch64-apple-darwin/release/nyash-client
|
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
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ edition = "2024"
|
|||||||
|
|
||||||
|
|
||||||
[[bin]] # Bin to run the HelloWorld gRPC server
|
[[bin]] # Bin to run the HelloWorld gRPC server
|
||||||
name = "nyash_server"
|
name = "nyash-server"
|
||||||
path = "src/server.rs"
|
path = "src/server.rs"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user