Skip to content

Commit a59f6e9

Browse files
committed
simplify github actions workflows
1 parent 9730d83 commit a59f6e9

File tree

4 files changed

+44
-163
lines changed

4 files changed

+44
-163
lines changed

.github/workflows/generate.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/publish_indexify_server.yaml

Lines changed: 3 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -27,97 +27,8 @@ defaults:
2727
working-directory: ./server
2828

2929
jobs:
30-
build-linux-amd64-package:
31-
name: Build x86_64 Linux Package
32-
runs-on: ubuntu-latest-xlarge
33-
steps:
34-
- uses: actions/checkout@v4
35-
- run: rustup toolchain install nightly --component rustfmt
36-
- run: cargo +nightly fmt --check
37-
- run: cargo install cargo-deb
38-
- run: make build-release
39-
- run: cargo deb --no-build --no-strip --target x86_64-unknown-linux-gnu
40-
- uses: actions/upload-artifact@v4
41-
with:
42-
name: indexify-server-linux-amd64
43-
path: server/target/x86_64-unknown-linux-gnu/release/indexify-server
44-
if-no-files-found: error
45-
- uses: actions/upload-artifact@v4
46-
with:
47-
name: indexify-server-deb-linux-amd64
48-
path: server/target/x86_64-unknown-linux-gnu/debian/indexify-server_*.deb
49-
if-no-files-found: error
50-
51-
build-linux-arm64-package:
52-
name: Build Aarch64 Linux Package
53-
runs-on: ubuntu-latest-xlarge
54-
steps:
55-
- uses: actions/checkout@v4
56-
- run: rustup toolchain install nightly --component rustfmt
57-
- run: cargo +nightly fmt --check
58-
- run: make build-release-aarch64
59-
- run: cargo install cargo-deb
60-
- run: cargo deb --no-build --no-strip --target aarch64-unknown-linux-gnu
61-
- uses: actions/upload-artifact@v4
62-
with:
63-
name: indexify-server-linux-aarch64
64-
path: server/target/aarch64-unknown-linux-gnu/release/indexify-server
65-
if-no-files-found: error
66-
- uses: actions/upload-artifact@v4
67-
with:
68-
name: indexify-server-deb-linux-aarch64
69-
path: server/target/aarch64-unknown-linux-gnu/debian/indexify-server_*.deb
70-
if-no-files-found: error
71-
72-
build-macos-package:
73-
name: Build macOS Package
74-
runs-on: macos-14-xlarge
75-
steps:
76-
- uses: actions/checkout@v4
77-
- run: rustup update
78-
- run: rustup toolchain install nightly --component rustfmt
79-
- run: rustup target add aarch64-apple-darwin
80-
- run: cargo +nightly fmt --check
81-
- run: make package-ui
82-
- run: cargo build --release
83-
- uses: actions/upload-artifact@v4
84-
with:
85-
name: indexify-server-darwin-arm64
86-
path: server/target/release/indexify-server
87-
if-no-files-found: error
88-
89-
# build-macos-package-x86:
90-
# name: Build macOS Package
91-
# runs-on: macos-12
92-
# steps:
93-
# - uses: actions/checkout@v4
94-
# - run: rustup update
95-
# - run: rustup toolchain install nightly --component rustfmt
96-
# - run: cargo +nightly fmt --check
97-
# - run: make package-ui
98-
# - run: cargo build --release
99-
# - uses: actions/upload-artifact@v4
100-
# with:
101-
# name: indexify-server-darwin-amd64
102-
# path: server/target/release/indexify-server
103-
# if-no-files-found: error
104-
105-
# build-windows-package:
106-
# name: Build Windows Package
107-
# runs-on: windows-latest-large
108-
# steps:
109-
# - uses: actions/checkout@v4
110-
# - uses: ilammy/setup-nasm@v1
111-
# - run: rustup toolchain install nightly --component rustfmt
112-
# - run: cargo +nightly fmt --check
113-
# - run: choco install protoc
114-
# - run: make package-ui
115-
# - run: cargo build --release
116-
# - uses: actions/upload-artifact@v4
117-
# with:
118-
# name: indexify-server-windows-amd64.exe
119-
# path: server/target/release/indexify-server.exe
120-
# if-no-files-found: error
30+
build-release-packages:
31+
uses: ./.github/workflows/wf_build_indexify_server_release_packages.yaml
12132

12233
extract-version:
12334
name: Extract Version Number
@@ -133,11 +44,7 @@ jobs:
13344
name: Create GitHub Release
13445
runs-on: ubuntu-latest
13546
needs:
136-
- build-linux-amd64-package
137-
- build-linux-arm64-package
138-
# - build-windows-package
139-
- build-macos-package
140-
# - build-macos-package-x86
47+
- build-release-packages
14148
- extract-version
14249
steps:
14350
- uses: actions/checkout@v4

.github/workflows/tests.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,4 +288,9 @@ jobs:
288288
if pgrep -f indexify; then
289289
echo "Error: Some Indexify processes are still running."
290290
exit 1
291-
fi
291+
fi
292+
293+
build_release_packages:
294+
name: Test Building Release Packages
295+
needs: [acceptance_tests, build_server]
296+
uses: ./.github/workflows/wf_build_indexify_server_release_packages.yaml

.github/workflows/test_build_docker_indexify_server_workflow.yaml renamed to .github/workflows/wf_build_indexify_server_release_packages.yaml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
name: Test - Build Docker Indexify Server
1+
name: Build Indexify Server Release Packages
22

33
on:
4-
push:
5-
branches:
6-
- 'main'
7-
pull_request:
8-
branches:
9-
- 'main'
10-
paths:
11-
- 'server/**'
12-
- '.github/workflows/test_build_docker_indexify_server_workflow.yaml'
4+
workflow_call:
135

146
env:
157
CARGO_TERM_COLOR: always
@@ -76,4 +68,36 @@ jobs:
7668
with:
7769
name: indexify-server-darwin-arm64
7870
path: server/target/release/indexify-server
79-
if-no-files-found: error
71+
if-no-files-found: error
72+
73+
# build-macos-package-x86:
74+
# name: Build macOS Package
75+
# runs-on: macos-12
76+
# steps:
77+
# - uses: actions/checkout@v4
78+
# - run: rustup update
79+
# - run: rustup toolchain install nightly --component rustfmt
80+
# - run: cargo +nightly fmt --check
81+
# - run: make package-ui
82+
# - run: cargo build --release
83+
# - uses: actions/upload-artifact@v4
84+
# with:
85+
# name: indexify-server-darwin-amd64
86+
# path: server/target/release/indexify-server
87+
# if-no-files-found: error
88+
89+
# build-windows-package:
90+
# name: Build Windows Package
91+
# runs-on: windows-latest-large
92+
# steps:
93+
# - uses: actions/checkout@v4
94+
# - uses: ilammy/setup-nasm@v1
95+
# - run: rustup toolchain install nightly --component rustfmt
96+
# - run: cargo +nightly fmt --check
97+
# - run: make package-ui
98+
# - run: cargo build --release
99+
# - uses: actions/upload-artifact@v4
100+
# with:
101+
# name: indexify-server-windows-amd64.exe
102+
# path: server/target/release/indexify-server.exe
103+
# if-no-files-found: error

0 commit comments

Comments
 (0)