-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0783d2
commit 0fcbc9d
Showing
2 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
.github/workflows/test_build_docker_indexify_server_workflow.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Test - Build Docker Indexify Server | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'server/**' | ||
- '.github/workflows/test_build_docker_indexify_server_workflow.yaml' | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
defaults: | ||
run: | ||
working-directory: ./server | ||
|
||
jobs: | ||
build-linux-amd64-package: | ||
name: Build x86_64 Linux Package | ||
runs-on: ubuntu-latest-xlarge | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: rustup toolchain install nightly --component rustfmt | ||
- run: cargo +nightly fmt --check | ||
- run: cargo install cargo-deb | ||
- run: make build-release | ||
- run: cargo deb --no-build --no-strip --target x86_64-unknown-linux-gnu | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: indexify-server-linux-amd64 | ||
path: server/target/x86_64-unknown-linux-gnu/release/indexify-server | ||
if-no-files-found: error | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: indexify-server-deb-linux-amd64 | ||
path: server/target/x86_64-unknown-linux-gnu/debian/indexify-server_*.deb | ||
if-no-files-found: error | ||
|
||
build-linux-arm64-package: | ||
name: Build Aarch64 Linux Package | ||
runs-on: ubuntu-latest-xlarge | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: rustup toolchain install nightly --component rustfmt | ||
- run: cargo +nightly fmt --check | ||
- run: make build-release-aarch64 | ||
- run: cargo install cargo-deb | ||
- run: cargo deb --no-build --no-strip --target aarch64-unknown-linux-gnu | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: indexify-server-linux-aarch64 | ||
path: server/target/aarch64-unknown-linux-gnu/release/indexify-server | ||
if-no-files-found: error | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: indexify-server-deb-linux-aarch64 | ||
path: server/target/aarch64-unknown-linux-gnu/debian/indexify-server_*.deb | ||
if-no-files-found: error | ||
|
||
build-macos-package: | ||
name: Build macOS Package | ||
runs-on: macos-14-xlarge | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: rustup update | ||
- run: rustup toolchain install nightly --component rustfmt | ||
- run: rustup target add aarch64-apple-darwin | ||
- run: cargo +nightly fmt --check | ||
- run: make package-ui | ||
- run: cargo build --release | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: indexify-server-darwin-arm64 | ||
path: server/target/release/indexify-server | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters