GUI: responsive layout, refactor command build; Fetcher: more 502/5xx… #16
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
| # Build strigil: PyInstaller bundles on all OS + Docker image. Light runs. | |
| name: Build | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| bundle: | |
| name: Bundle (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install deps and bundle tooling | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[bundle]" | |
| - name: Build PyInstaller bundle | |
| run: pyinstaller strigil.spec | |
| - name: Create install package (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: powershell -Command "Compress-Archive -Path 'dist/strigil' -DestinationPath 'dist/strigil-win.zip' -Force" | |
| - name: Create install package (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: cd dist && zip -r strigil-mac.zip strigil | |
| - name: Create install package (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: tar -czf dist/strigil-linux.tar.gz -C dist strigil | |
| - name: Upload folder artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: strigil-${{ matrix.os }} | |
| path: dist/strigil/ | |
| - name: Upload install package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: strigil-${{ matrix.os }}-install | |
| path: | | |
| dist/strigil-win.zip | |
| dist/strigil-mac.zip | |
| dist/strigil-linux.tar.gz | |
| docker: | |
| name: Docker | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: false | |
| load: true | |
| tags: strigil:latest | |
| - name: Smoke test | |
| run: | | |
| docker run --rm strigil:latest --url https://example.com --out-dir /tmp/out --types text 2>&1 | head -20 |