Update from copier (2026-07-26T07:33:34) #26
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 Status | ||
| on: | ||
| push: | ||
| branches: [main] | ||
| tags: [v*] | ||
| pull_request: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
| cancel-in-progress: true | ||
| permissions: | ||
| contents: read | ||
| checks: write | ||
| pull-requests: write | ||
| jobs: | ||
| build: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: | ||
| - ubuntu-24.04 | ||
| - macos-14 | ||
| - windows-2022 | ||
| python-version: | ||
| - "3.11" | ||
| cibuildwheel: | ||
| - "cp311" | ||
| steps: | ||
| <<<<<<< before updating | ||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||
| ======= | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446 | ||
| >>>>>>> after updating | ||
| with: | ||
| submodules: 'true' | ||
| <<<<<<< before updating | ||
| - name: Setup cache (mac/linux) | ||
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| ======= | ||
| - name: Test | ||
| run: make coverage | ||
| - name: Upload test results (Python) | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| >>>>>>> after updating | ||
| with: | ||
| path: "/home/runner/work/openfpgaloader-python/openfpgaloader-python/.ccache" | ||
| key: cache-${{ runner.os }}- | ||
| restore-keys: cache-${{ runner.os }}- | ||
| if: ${{ runner.os != 'Windows' }} | ||
| - name: Setup cache (windows) | ||
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: "C:/ProgramData/chocolatey/" | ||
| key: cache-${{ runner.os }}- | ||
| restore-keys: cache-${{ runner.os }}- | ||
| if: ${{ runner.os == 'Windows' }} | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| cache: 'pip' | ||
| cache-dependency-path: 'pyproject.toml' | ||
| - name: Install dependencies | ||
| run: pip install cibuildwheel | ||
| <<<<<<< before updating | ||
| - name: Set up MSYS2 (windows) | ||
| uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2.32.0 | ||
| with: | ||
| msystem: UCRT64 | ||
| update: true | ||
| path-type: inherit | ||
| install: make | ||
| if: ${{ runner.os == 'Windows' }} | ||
| - name: Python Wheel Steps (linux) | ||
| run: python -m cibuildwheel --output-dir dist | ||
| env: | ||
| CIBW_BUILD: "${{ matrix.cibuildwheel }}-manylinux*" | ||
| CIBW_ENVIRONMENT_LINUX: CCACHE_DIR="/host/home/runner/work/openfpgaloader-python/openfpgaloader-python/.ccache" | ||
| CIBW_BUILD_VERBOSITY: 3 | ||
| if: ${{ runner.os == 'Linux' }} | ||
| - name: Python Build Steps (mac) | ||
| run: python -m cibuildwheel --output-dir dist | ||
| env: | ||
| CIBW_BUILD: "${{ matrix.cibuildwheel }}-macos*" | ||
| CIBW_ENVIRONMENT_MACOS: CCACHE_DIR="/Users/runner/work/openfpgaloader-python/openfpgaloader-python/.ccache" MACOSX_DEPLOYMENT_TARGET=11.0 | ||
| CIBW_BUILD_VERBOSITY: 3 | ||
| if: ${{ matrix.os == 'macos-14' }} | ||
| - name: Python Build Steps (windows) | ||
| run: python -m cibuildwheel --output-dir dist | ||
| shell: msys2 {0} | ||
| env: | ||
| CIBW_BUILD: "${{ matrix.cibuildwheel }}-win_amd64" | ||
| CMAKE_GENERATOR: MSYS Makefiles | ||
| if: ${{ matrix.os == 'windows-2022' }} | ||
| - name: Upload Wheel | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| ======= | ||
| - uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446 | ||
| with: | ||
| module: openfpgaloader | ||
| - uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446 | ||
| >>>>>>> after updating | ||
| with: | ||
| name: dist-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python-version }} | ||
| path: dist/*.whl | ||
| <<<<<<< before updating | ||
| - name: Install wheel (mac/linux) | ||
| run: python -m pip install dist/*.whl | ||
| if: ${{ runner.os != 'Windows' }} | ||
| - name: Install wheel (windows) | ||
| run: python -m pip install -U (Get-ChildItem .\dist\*.whl | Select-Object -Expand FullName) | ||
| if: ${{ runner.os == 'Windows' }} | ||
| - name: Install test dependencies | ||
| run: python -m pip install pytest rich typer | ||
| - name: Test Wheel | ||
| run: python -m pytest -vvv openfpgaloader/tests | ||
| ======= | ||
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: dist-${{matrix.os}} | ||
| path: dist | ||
| >>>>>>> after updating | ||