Skip to content

Build_and_Publish_test #8

Build_and_Publish_test

Build_and_Publish_test #8

name: Build_and_Publish_test
on: workflow_dispatch
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v4
with:
ref: 0.13.0
- uses: actions/setup-python@v4
- uses: fortran-lang/setup-fortran@v1
if: runner.os == 'Windows'
id: setup-fortran
with:
compiler: gcc
version: 12
- run: ${{ env.FC }} --version
if: runner.os == 'Windows'
env:
FC: ${{ steps.setup-fortran.outputs.fc }}
- name: Build wheels
uses: pypa/[email protected]
env:
FC: gfortran-12
with:
output-dir: wheelhouse
config-file: "{package}/pyproject.toml"
- name: Print for debugging
run: ls ./wheelhouse
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl