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
4 changes: 4 additions & 0 deletions .cursor/environment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "MajdataViewAlpha Linux",
"install": "bash scripts/linux-install.sh"
}
36 changes: 36 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Linux

on:
push:
branches: [main]
pull_request:

jobs:
linux-tools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Linux dev dependencies
run: bash scripts/linux-install.sh

- name: Smoke test Maicaiyin and simai_parser
run: bash scripts/smoke-linux.sh

- name: Build native majdata CLI
run: dotnet publish MajdataEdit.Cli/MajdataEdit.Cli.csproj -c Release -r linux-x64 -o /tmp/majdata-cli -nologo

- name: Build Avalonia MajdataEdit
run: dotnet publish MajdataEdit.Avalonia/MajdataEdit.Avalonia.csproj -c Release -r linux-x64 -o /tmp/majdata-edit -nologo

- name: CLI doctor check
run: MAJDATA_ROOT=$PWD MAJDATA_PYTHON=$HOME/.venvs/majdataviewalpha/bin/python /tmp/majdata-cli/majdata doctor

- name: Build Linux release archive
run: bash scripts/linux-release.sh

- name: Upload Linux release artifact
uses: actions/upload-artifact@v4
with:
name: MajdataViewAlpha-Linux
path: dist/linux/*.tar.gz
28 changes: 28 additions & 0 deletions .github/workflows/windows-edit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Windows Edit publish

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

jobs:
publish-edit:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Publish MajdataEdit (win-x64)
run: dotnet publish MajdataEdit/MajdataEdit.csproj -c Release -r win-x64 --self-contained false -o artifacts/MajdataEdit

- name: Publish MajdataLauncher (win-x64)
run: dotnet publish MajdataLauncher/MajdataLauncher.csproj -c Release -r win-x64 --self-contained false -o artifacts/MajdataLauncher

- uses: actions/upload-artifact@v4
with:
name: MajdataViewAlpha-Windows-Edit
path: artifacts/
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ UserSettings/
.DS_Store
._*

# Unity generated project files
# Unity generated project files (keep hand-maintained WPF projects)
*.csproj
!MajdataEdit/MajdataEdit.csproj
!MajdataLauncher/MajdataLauncher.csproj
!MajdataEdit.Cli/MajdataEdit.Cli.csproj
!MajdataEdit.Core/MajdataEdit.Core.csproj
!MajdataEdit.Avalonia/MajdataEdit.Avalonia.csproj
*.unityproj
*.sln
*.slnx
Expand All @@ -30,7 +35,8 @@ Build/
build/
Release/
release/
dist/
dist/*
!dist/.gitkeep

# Local test / cache folders
.codex-temp/
Expand Down
Loading
Loading