-
Notifications
You must be signed in to change notification settings - Fork 45
71 lines (61 loc) · 1.9 KB
/
build-verify.yml
File metadata and controls
71 lines (61 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Verify Platform Builds
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- name: linux-x64
script: linux-x64
output: build/appwrite-cli-linux-x64
- name: linux-arm64
script: linux-arm64
output: build/appwrite-cli-linux-arm64
- name: mac-x64
script: mac-x64
output: build/appwrite-cli-darwin-x64
- name: mac-arm64
script: mac-arm64
output: build/appwrite-cli-darwin-arm64
- name: windows-x64
script: windows-x64
output: build/appwrite-cli-win-x64.exe
- name: windows-arm64
script: windows-arm64
output: build/appwrite-cli-win-arm64.exe
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup binfmt with QEMU
run: |
sudo apt update
sudo apt install -y qemu-system binfmt-support qemu-user-static
update-binfmts --display
- name: Setup ldid (for macOS builds)
if: contains(matrix.platform.name, 'mac')
run: |
git clone https://github.com/tpoechtrager/ldid
cd ./ldid
sudo make
sudo make install
- name: Install dependencies
run: bun install
- name: Build for ${{ matrix.platform.name }}
run: bun run ${{ matrix.platform.script }}
- name: Verify build output exists
run: |
if [ ! -f "${{ matrix.platform.output }}" ]; then
echo "Build output not found: ${{ matrix.platform.output }}"
exit 1
fi
echo "✓ Build successful: ${{ matrix.platform.output }}"
ls -lh "${{ matrix.platform.output }}"