diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index c4152eb..f2058fa 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -55,55 +55,55 @@ jobs: name: dist-cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl - build_win_exe: - name: Build standalone executable ⚙️ for Windows 🖥️ - runs-on: [windows-latest] - continue-on-error: true - steps: - - name: Setup | Install python - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 - with: - python-version: '3.12' - - - name: Setup | Checkout Code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Setup | Install Dependencies - run: pip install -r requirements.txt -r requirements-exe.txt - - run: pip install . - - run: python setup.py build_ext -i - - - name: Setup | Get the sansmic version number - id: vars - run: | - python -c "import sansmic; print('sansmic_version='+sansmic.__version__)" >> $Env:GITHUB_ENV - echo "sha_short=$(git rev-parse --short HEAD)" >> $Env:GITHUB_ENV - - - name: Action | Run PyInstaller - run: | - pyinstaller --collect-all sansmic --collect-all click --hidden-import sansmic --hidden-import click --hidden-import pandas --hidden-import pybind11 --hidden-import numpy --hidden-import h5py --hidden-import pyyaml --hidden-import lasio -n sansmic --add-binary src/python/sansmic/libsansmic.cp312-win_amd64.pyd:sansmic src/python/sansmic/app.py - - - name: Action | Create examples - run: mkdir dist/sansmic/examples - - run: copy README.md dist/sansmic/README.md - - run: copy LICENSE dist/sansmic/LICENSE.md - - run: copy CHANGELOG.md dist/sansmic/CHANGELOG.md - - run: copy AUTHORS.md dist/sansmic/AUTHORS.md - - run: copy SECURITY.md dist/sansmic/SECURITY.md - - run: sansmic-convert tests/baseline.dat dist/sansmic/examples/baseline.toml - - run: Compress-Archive -Path dist/sansmic -DestinationPath dist/sansmic-${{github.ref_name}}-standalone-win_amd64.zip - - - name: Action | Upload Artifacts - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 - with: - name: dist-exec-windows-latest - path: ./dist/sansmic-*-standalone-win_amd64.zip + # build_win_exe: + # name: Build standalone executable ⚙️ for Windows 🖥️ + # runs-on: [windows-latest] + # continue-on-error: true + # steps: + # - name: Setup | Install python + # uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 + # with: + # python-version: '3.12' + + # - name: Setup | Checkout Code + # uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + # - name: Setup | Install Dependencies + # run: pip install -r requirements.txt -r requirements-exe.txt + # - run: pip install . + # - run: python setup.py build_ext -i + + # - name: Setup | Get the sansmic version number + # id: vars + # run: | + # python -c "import sansmic; print('sansmic_version='+sansmic.__version__)" >> $Env:GITHUB_ENV + # echo "sha_short=$(git rev-parse --short HEAD)" >> $Env:GITHUB_ENV + + # - name: Action | Run PyInstaller + # run: | + # pyinstaller --collect-all sansmic --collect-all click --hidden-import sansmic --hidden-import click --hidden-import pandas --hidden-import pybind11 --hidden-import numpy --hidden-import h5py --hidden-import pyyaml --hidden-import lasio -n sansmic --add-binary src/python/sansmic/libsansmic.cp312-win_amd64.pyd:sansmic src/python/sansmic/app.py + + # - name: Action | Create examples + # run: mkdir dist/sansmic/examples + # - run: copy README.md dist/sansmic/README.md + # - run: copy LICENSE dist/sansmic/LICENSE.md + # - run: copy CHANGELOG.md dist/sansmic/CHANGELOG.md + # - run: copy AUTHORS.md dist/sansmic/AUTHORS.md + # - run: copy SECURITY.md dist/sansmic/SECURITY.md + # - run: sansmic-convert tests/baseline.dat dist/sansmic/examples/baseline.toml + # - run: Compress-Archive -Path dist/sansmic -DestinationPath dist/sansmic-${{github.ref_name}}-standalone-win_amd64.zip + + # - name: Action | Upload Artifacts + # uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 + # with: + # name: dist-exec-windows-latest + # path: ./dist/sansmic-*-standalone-win_amd64.zip publish-to-gh: name: Upload artifacts runs-on: ubuntu-latest needs: - - build_win_exe + # - build_win_exe - make_sdist - build_wheels environment: