Fix macOS build: vendor OpenSSL, improve release asset names
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
47
.github/workflows/release.yml
vendored
47
.github/workflows/release.yml
vendored
@@ -10,21 +10,27 @@ permissions:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build ${{ matrix.target }}
|
||||
name: Build ${{ matrix.name }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- target: x86_64-unknown-linux-gnu
|
||||
- name: Linux (x86_64)
|
||||
target: x86_64-unknown-linux-gnu
|
||||
os: ubuntu-latest
|
||||
archive: tar.gz
|
||||
- target: x86_64-apple-darwin
|
||||
asset_name: ironpad-linux-x86_64
|
||||
- name: macOS (x86_64)
|
||||
target: x86_64-apple-darwin
|
||||
os: macos-latest
|
||||
archive: tar.gz
|
||||
- target: x86_64-pc-windows-msvc
|
||||
asset_name: ironpad-macos-x86_64
|
||||
- name: Windows (x86_64)
|
||||
target: x86_64-pc-windows-msvc
|
||||
os: windows-latest
|
||||
archive: zip
|
||||
asset_name: ironpad-windows-x86_64
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -35,6 +41,10 @@ jobs:
|
||||
with:
|
||||
targets: ${{ matrix.target }}
|
||||
|
||||
- name: Install system dependencies (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
run: sudo apt-get update && sudo apt-get install -y cmake
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
@@ -60,10 +70,9 @@ jobs:
|
||||
if: matrix.archive == 'tar.gz'
|
||||
shell: bash
|
||||
run: |
|
||||
BINARY_NAME="ironpad"
|
||||
RELEASE_DIR="ironpad-${{ github.ref_name }}-${{ matrix.target }}"
|
||||
RELEASE_DIR="${{ matrix.asset_name }}-${{ github.ref_name }}"
|
||||
mkdir -p "$RELEASE_DIR"
|
||||
cp "backend/target/${{ matrix.target }}/release/$BINARY_NAME" "$RELEASE_DIR/"
|
||||
cp "backend/target/${{ matrix.target }}/release/ironpad" "$RELEASE_DIR/"
|
||||
cp README.md LICENSE "$RELEASE_DIR/"
|
||||
tar czf "$RELEASE_DIR.tar.gz" "$RELEASE_DIR"
|
||||
echo "ASSET=$RELEASE_DIR.tar.gz" >> $GITHUB_ENV
|
||||
@@ -72,10 +81,9 @@ jobs:
|
||||
if: matrix.archive == 'zip'
|
||||
shell: bash
|
||||
run: |
|
||||
BINARY_NAME="ironpad.exe"
|
||||
RELEASE_DIR="ironpad-${{ github.ref_name }}-${{ matrix.target }}"
|
||||
RELEASE_DIR="${{ matrix.asset_name }}-${{ github.ref_name }}"
|
||||
mkdir -p "$RELEASE_DIR"
|
||||
cp "backend/target/${{ matrix.target }}/release/$BINARY_NAME" "$RELEASE_DIR/"
|
||||
cp "backend/target/${{ matrix.target }}/release/ironpad.exe" "$RELEASE_DIR/"
|
||||
cp README.md LICENSE "$RELEASE_DIR/"
|
||||
7z a "$RELEASE_DIR.zip" "$RELEASE_DIR"
|
||||
echo "ASSET=$RELEASE_DIR.zip" >> $GITHUB_ENV
|
||||
@@ -83,7 +91,7 @@ jobs:
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ironpad-${{ matrix.target }}
|
||||
name: ${{ matrix.asset_name }}
|
||||
path: ${{ env.ASSET }}
|
||||
|
||||
release:
|
||||
@@ -99,6 +107,23 @@ jobs:
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: Ironpad ${{ github.ref_name }}
|
||||
body: |
|
||||
## Downloads
|
||||
|
||||
| Platform | File |
|
||||
|----------|------|
|
||||
| Windows (x86_64) | `ironpad-windows-x86_64-${{ github.ref_name }}.zip` |
|
||||
| macOS (x86_64) | `ironpad-macos-x86_64-${{ github.ref_name }}.tar.gz` |
|
||||
| Linux (x86_64) | `ironpad-linux-x86_64-${{ github.ref_name }}.tar.gz` |
|
||||
|
||||
**Linux:** Extract the tar.gz and run `./ironpad`. Works on any distro -- it's a standalone binary with no dependencies.
|
||||
|
||||
**macOS:** Extract and run. You may need to allow it in System Settings > Privacy & Security on first launch.
|
||||
|
||||
**Windows:** Extract the zip and run `ironpad.exe`.
|
||||
|
||||
---
|
||||
files: artifacts/**/*
|
||||
generate_release_notes: true
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user