# GitHub Action for building dirsearch with PyInstaller (macOS Intel) name: PyInstaller macOS Intel on: workflow_dispatch: workflow_call: env: PYTHON_VERSION: '3.11' PYINSTALLER_VERSION: '6.16.0' jobs: build-macos-intel: name: Build macOS Intel (${{ matrix.variant.name }}) runs-on: macos-15-large timeout-minutes: 30 strategy: fail-fast: false matrix: variant: - name: threaded async: "False" - name: async async: "True" steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel pip install -r requirements.txt pip install pyinstaller==${{ env.PYINSTALLER_VERSION }} - name: Set default async mode run: | sed -i '' "s/^async = .*/async = ${{ matrix.variant.async }}/" config.ini - name: Build macOS Intel binary run: | python -m PyInstaller \ --clean \ pyinstaller/dirsearch.spec - name: Rename binary run: mv dist/dirsearch dist/dirsearch-macos-intel-${{ matrix.variant.name }} - name: Test macOS Intel binary run: | ./dist/dirsearch-macos-intel-${{ matrix.variant.name }} --version ./dist/dirsearch-macos-intel-${{ matrix.variant.name }} --help - name: Upload macOS Intel artifact uses: actions/upload-artifact@v4 with: name: dirsearch-macos-intel-${{ matrix.variant.name }} path: dist/dirsearch-macos-intel-${{ matrix.variant.name }} retention-days: 30