Bump github/codeql-action from 4.37.6 to 4.37.7 #63
Workflow file for this run
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 | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| schedule: | |
| - cron: "0 0 * * 0" # Runs every Sunday at midnight UTC | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build wheels (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| # Pinned: Homebrew bottles on macos-latest (macOS 26) carry | |
| # minos 26.0, which delocate rejects against the 15.0 wheel | |
| # target below. Keep this image and MACOSX_DEPLOYMENT_TARGET | |
| # in sync if either changes. | |
| - macos-15 | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.12" | |
| - name: Install gfortran (macOS) | |
| if: runner.os == 'macOS' | |
| run: | | |
| brew install gcc || brew link --overwrite gcc | |
| echo "$(brew --prefix gcc)/bin" >> "$GITHUB_PATH" | |
| "$(brew --prefix gcc)/bin/gfortran" --version | |
| - name: Install MinGW via Chocolatey (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| choco install -y mingw | |
| $paths = @( | |
| 'C:\\ProgramData\\mingw64\\mingw64\\bin', | |
| 'C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin', | |
| 'C:\\tools\\mingw64\\bin', | |
| 'C:\\ProgramData\\chocolatey\\bin' | |
| ) | |
| foreach ($p in $paths) { if (Test-Path $p) { echo $p >> $env:GITHUB_PATH; Write-Host "Added $p to PATH" } } | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install numpy cibuildwheel | |
| - name: Build wheels | |
| run: python -m cibuildwheel --output-dir wheels | |
| env: | |
| CIBW_ARCHS_LINUX: x86_64 | |
| CIBW_ARCHS_MACOS: arm64 | |
| CIBW_ARCHS_WINDOWS: AMD64 | |
| CIBW_ENVIRONMENT_MACOS: "PATH=/opt/homebrew/bin:$PATH MACOSX_DEPLOYMENT_TARGET=15.0" | |
| - name: Debug Windows native deps | |
| if: failure() && runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| Write-Host 'PATH:' | |
| Write-Host $env:PATH | |
| foreach ($cmd in @('gcc', 'gfortran', 'objdump')) { | |
| try { | |
| Write-Host "Command: $cmd" | |
| Get-Command $cmd -ErrorAction Stop | Format-List * | |
| } catch { | |
| Write-Host "Missing command: $cmd" | |
| } | |
| } | |
| $pyds = Get-ChildItem -Path . -Recurse -Filter '*.pyd' -ErrorAction SilentlyContinue | |
| foreach ($pyd in $pyds) { | |
| Write-Host "Inspecting $($pyd.FullName)" | |
| try { | |
| & objdump -p $pyd.FullName | Select-String 'DLL Name|Name:|ImageBase|Subsystem' | |
| } catch { | |
| Write-Host "objdump failed for $($pyd.FullName)" | |
| } | |
| } | |
| - name: Upload wheels | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: wheels-${{ matrix.os }} | |
| path: wheels/*.whl |