Manually run msix build and submission #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run TPR Builds Manually | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# Set up Flutter | |
- name: Install Flutter | |
uses: subosito/flutter-action@v1 | |
with: | |
channel: 'stable' | |
flutter-version: 3.10.x | |
# Linux specific setup | |
- name: Install Linux dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt update | |
# sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev libfuse2 -y | |
# Download the zip file | |
- name: Download zip file | |
run: curl -L -o assets/database/tipitaka_pali.zip https://dl.dropboxusercontent.com/s/svnrlo29dnblyad/tipitaka_pali.zip?dl=0 | |
# Extract the zip file | |
- name: Extract zip file | |
run: unzip assets/database/tipitaka_pali.zip -d assets/database/ | |
# Delete the original zip file | |
- name: Delete zip file | |
run: rm assets/database/tipitaka_pali.zip | |
# Run the split.sh script | |
- name: Run split.sh script | |
run: bash assets/database/split.sh | |
# Flutter build for Windows | |
- name: Build Flutter project (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
flutter pub get | |
flutter build windows --release # For Windows | |
- name: Download SQLite DLL | |
run: | | |
curl -sSL -o sqlite.zip https://www.sqlite.org/2023/sqlite-dll-win64-x64-3420000.zip | |
- name: Extract SQLite DLL | |
run: unzip sqlite.zip | |
- name: Copy SQLite DLL to Build Release (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
copy sqlite3.dll build\windows\runner\Release\ | |
- name: Copy SQLite DLL to Build Release | |
run: | | |
dart run msix:create | |
# Upload Windows build | |
- name: Upload Windows build | |
if: matrix.os == 'windows-latest' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: windows-build | |
path: build/windows/runner/Release |