Skip to content

Commit 41ffbba

Browse files
Create build-mac.yml
1 parent beb9fa3 commit 41ffbba

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/build-mac.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build On Mac
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: macos-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
with:
17+
submodules: true
18+
19+
- name: Set up Node
20+
uses: actions/setup-node@v4
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Build
26+
run: npm run build
27+
28+
- name: Verify build output
29+
run: |
30+
if [ ! -d "dist/api/v1/core/db" ]; then
31+
echo "❌ Error: Directory dist/api/v1/core/db does not exist!"
32+
exit 1
33+
elif [ -z "$(ls -A dist/api/v1/core/db 2>/dev/null)" ]; then
34+
echo "❌ Error: No files found in dist/api/v1/core/db!"
35+
exit 1
36+
else
37+
echo "✅ Success: Files found in dist/api/v1/core/db"
38+
fi

0 commit comments

Comments
 (0)