Merge pull request #34 from marvin-wtt/dependabot/npm_and_yarn/npm_an… #159
This file contains hidden or 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: Build App | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '*' | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write | |
| strategy: | |
| matrix: | |
| os: | |
| - windows-latest | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r src-python/requirements.txt | |
| - name: Build Python executable | |
| shell: bash | |
| run: | | |
| pyinstaller \ | |
| --onefile \ | |
| --collect-all ortools \ | |
| --distpath dist/python \ | |
| --workpath dist/python/pyinstaller \ | |
| --specpath dist/python/pyinstaller \ | |
| --paths src-python \ | |
| src-python/solver_main.py | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install Node dependencies | |
| run: npm ci | |
| - name: Build App | |
| run: npm run build | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |