+21
-26
.github/workflows/cli.yml
+21
-26
.github/workflows/cli.yml
···
11
11
required: true
12
12
type: string
13
13
14
+
permissions:
15
+
contents: write
16
+
14
17
jobs:
15
18
build:
16
19
name: Build CLI Binaries
17
20
strategy:
18
21
matrix:
19
22
include:
20
-
- target: x86_64-unknown-linux-gnu
21
-
os: ubuntu-latest
22
-
package: grain-linux-x86_64
23
-
artifact: grain-linux-x86_64
24
-
- target: aarch64-unknown-linux-gnu
25
-
os: ubuntu-latest
26
-
package: grain-linux-aarch64
27
-
artifact: grain-linux-aarch64
28
-
- target: x86_64-apple-darwin
29
-
os: macos-13 # Intel Mac
30
-
package: grain-macos-x86_64
31
-
artifact: grain-darwin-x86_64
23
+
# - target: x86_64-unknown-linux-gnu
24
+
# os: ubuntu-latest
25
+
# package: grain-linux-x86_64
26
+
# artifact: grain-linux-x86_64
27
+
# - target: aarch64-unknown-linux-gnu
28
+
# os: ubuntu-latest
29
+
# package: grain-linux-aarch64
30
+
# artifact: grain-linux-aarch64
31
+
# - target: x86_64-apple-darwin
32
+
# os: macos-13 # Intel Mac
33
+
# package: grain-macos-x86_64
34
+
# artifact: grain-darwin-x86_64
32
35
- target: aarch64-apple-darwin
33
36
os: macos-latest # Apple Silicon Mac
34
37
package: grain-macos-aarch64
35
38
artifact: grain-darwin-aarch64
36
-
- target: x86_64-pc-windows-gnu
37
-
os: ubuntu-latest
38
-
package: grain-windows-x86_64
39
-
artifact: grain-windows-x86_64.exe
39
+
# - target: x86_64-pc-windows-gnu
40
+
# os: ubuntu-latest
41
+
# package: grain-windows-x86_64
42
+
# artifact: grain-windows-x86_64.exe
40
43
41
44
runs-on: ${{ matrix.os }}
42
45
defaults:
···
130
133
draft: false
131
134
prerelease: false
132
135
files: |
133
-
cli/release-assets/*
136
+
release-assets/*
134
137
body: |
135
138
## Grain CLI ${{ steps.tag.outputs.tag }}
136
139
···
189
192
sleep 30
190
193
191
194
# Test the install script
192
-
curl -L https://github.com/grainsocial/grain/releases/download/${{ steps.tag.outputs.tag }}/grain-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m) -o grain-test || exit 0
193
-
194
-
if [ -f grain-test ]; then
195
-
chmod +x grain-test
196
-
./grain-test --help
197
-
echo "✅ Binary works correctly"
198
-
else
199
-
echo "⚠️ Binary not available yet for this platform"
200
-
fi
195
+
curl -L https://github.com/grainsocial/grain/releases/download/${{ steps.tag.outputs.tag }}/install.sh | bash