-
Notifications
You must be signed in to change notification settings - Fork 0
Add GitHub Actions build workflow for cross-platform binary releases #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
3af0e5b
f92500a
46f5e80
f62a2f7
198e136
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| name: Validate | ||
|
|
||
| # Run on PRs and pushes to validate the codebase | ||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| validate: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v1 | ||
| with: | ||
| bun-version: latest | ||
|
|
||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile | ||
|
|
||
| - name: Validate package.json | ||
| run: | | ||
| VERSION=$(cat package.json | jq -r '.version') | ||
| if [[ -z "$VERSION" || "$VERSION" == "null" ]]; then | ||
| echo "❌ Invalid or missing version in package.json" | ||
| exit 1 | ||
| fi | ||
| echo "✅ Version: $VERSION" | ||
|
|
||
| - name: Check build script | ||
| run: | | ||
| if [[ ! -x "build.sh" ]]; then | ||
| echo "❌ build.sh is not executable" | ||
| exit 1 | ||
| fi | ||
| echo "✅ build.sh is executable" | ||
|
|
||
| - name: Test build process | ||
| run: | | ||
| echo "🔨 Testing build process..." | ||
| timeout 300 ./build.sh || { | ||
| echo "❌ Build failed or timed out" | ||
| exit 1 | ||
| } | ||
|
|
||
| # Quick verification that some binaries were created | ||
| if [[ ! -d "build" ]] || [[ -z "$(ls -A build/)" ]]; then | ||
| echo "❌ No build artifacts created" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "✅ Build test completed successfully" | ||
| echo "📦 Created artifacts:" | ||
| ls -la build/ |
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only list each possible build. Don't add as much to the readme
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Simplified the README to only list each supported build platform as requested. Removed the detailed table and extensive documentation in commit 198e136.
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the new build section
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed the detailed build section including build process, prerequisites, and development instructions as requested in commit 198e136. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the validate.yml workflow file completely as requested in commit 198e136.