57 lines
No EOL
1.3 KiB
YAML
57 lines
No EOL
1.3 KiB
YAML
name: "Build EXE"
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
tags: ["*"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-exe:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
flutter-version: 3.41.5
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: gomuks/go.mod
|
|
|
|
- name: Go build
|
|
run: |
|
|
cd gomuks/pkg/ffi
|
|
go build -tags goolm -o ../../../libgomuks.dll -buildmode=c-shared
|
|
|
|
- name: Build with Flutter
|
|
run: |
|
|
flutter pub get
|
|
dart scripts/generate.dart
|
|
flutter pub run build_runner build
|
|
flutter build windows --release
|
|
|
|
- name: Upload exe zip
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: windows-portable
|
|
path: build/windows/x64/runner/Release/
|
|
|
|
- name: Install Inno Setup
|
|
run: choco install innosetup -y
|
|
|
|
- name: Build Inno Setup installer
|
|
run: iscc windows/installer.iss
|
|
|
|
- name: Upload installer artifact
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: windows-installer
|
|
path: windows/dist/Nexus-Setup.exe |