Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create github action configuration to build Windows and OSX packages for each tag #14

Open
eroux opened this issue Jan 2, 2025 · 1 comment

Comments

@eroux
Copy link
Contributor

eroux commented Jan 2, 2025

I currently have a totally untested action.yml

jobs:
  build:
    strategy:
      matrix:
        os: [macos-latest, windows-latest]

    runs-on: ${{ matrix.os }}

    steps:
      - name: Check-out repository
        uses: actions/checkout@v4

      - name: Setup Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.10'
          architecture: 'x64'
          cache: 'pip'
          cache-dependency-path: |
            **/requirements*.txt

      - name: Install Dependencies
        run: |
          pip install -r requirements.txt -r requirements-dev.txt

      - name: Build Executable
        uses: Nuitka/Nuitka-Action@main
        with:
          nuitka-version: main
          windows-console-mode: disable
          enable-plugins: pyside6
          script-name: main.py
          windows-console-mode: disable
          windows-icon-from-ico: logo.ico
          macos-app-icon: logo.icns
          macos-signed-app-name: io.bdrc.ocrapp
          macos-app-name: BDRC Tibetan OCR
          macos-app-version: 0.1
          include-data-dir: |
            ./Resources/Models=Resources/Models
            ./Resources/Assets=Resources/Assets
          mode: standalone

      - name: Upload Artifacts
        uses: actions/upload-artifact@v4
        with:
          name: ${{ runner.os }} Build
          path: |
            build/*.exe
            build/*.bin
            build/*.app/**/*
          include-hidden-files: true

if possible (which it might not be) it will also build a package for Intel Mac

@jimk-bdrc
Copy link

The statement:

    with:
      python-version: '3.10'
      architecture: 'x64'

Will build it in the Intel architecture. I don't know how to tell it to build on the arm platform. Maybe it's arm64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants