Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 0 additions & 90 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,93 +67,3 @@ jobs:
with:
version: latest
args: --timeout=5m

build-desktop:
name: Build Desktop Apps
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux/amd64
name: linux-amd64
ext: ""
- os: macos-latest
platform: darwin/amd64
name: darwin-amd64
ext: ".app"
- os: macos-latest
platform: darwin/arm64
name: darwin-arm64
ext: ".app"
- os: windows-latest
platform: windows/amd64
name: windows-amd64
ext: ".exe"

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json

- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest

- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y build-essential pkg-config libgtk-3-dev libwebkit2gtk-4.0-dev

- name: Install Windows dependencies
if: matrix.os == 'windows-latest'
run: |
choco install mingw -y
choco install nsis -y

- name: Install frontend dependencies
working-directory: frontend
run: npm ci

- name: Build Wails app
run: |
wails build -platform ${{ matrix.platform }} -clean

- name: Package artifacts (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
mkdir -p artifacts
cp build/bin/ml-notes artifacts/ml-notes-${{ matrix.name }}
chmod +x artifacts/ml-notes-${{ matrix.name }}

- name: Package artifacts (macOS)
if: matrix.os == 'macos-latest'
run: |
mkdir -p artifacts
cp -r "build/bin/ML Notes.app" "artifacts/ML Notes-${{ matrix.name }}.app"

- name: Package artifacts (Windows)
if: matrix.os == 'windows-latest'
run: |
mkdir -p artifacts
cp build/bin/ml-notes.exe artifacts/ml-notes-${{ matrix.name }}.exe

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ml-notes-desktop-${{ matrix.name }}
path: artifacts/*
retention-days: 30
Loading
Loading