-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from quanted/dev
Updates to paper bib and gh action workflows
- Loading branch information
Showing
7 changed files
with
169 additions
and
113 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,6 @@ on: | |
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
permissions: | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,90 @@ | ||
name: Build and Publish Wheel | ||
name: Build and Publish Artifacts | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
env: | ||
MACOSX_DEPLOYMENT_TARGET: "10.12" | ||
CIBW_BUILD: "cp310-* cp311-* cp312-*" | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
# macos-13 is an intel runner, macos-14 is apple silicon | ||
os: [ubuntu-latest, macos-13, macos-14] | ||
python_version: ["3.10", "3.11", "3.12"] | ||
os: [ ubuntu-latest, windows-latest, macos-13, macos-latest ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
- name: Install setuptools | ||
run: | | ||
python -m pip install --upgrade pip | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable | ||
echo "PATH=${PATH}:${HOME}/.cargo/bin" >> "$GITHUB_ENV" | ||
rustc --version | ||
python -m pip install build setuptools setuptools-rust | ||
- name: Build wheels | ||
run: | ||
python -m build --outdir wheelhouse | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: esat-wheels-${{ matrix.os }}-py${{matrix.python_version}} | ||
path: ./wheelhouse/*.whl | ||
|
||
build_windows_wheel: | ||
name: Build wheels on windows-latest | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
python_version: [ "3.10", "3.11", "3.12" ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
python-version: "3.12" | ||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==2.22.0 | ||
- name: Install setuptools | ||
run: | | ||
python -m pip install --upgrade pip | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable | ||
echo "${HOME}/.cargo/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
echo "PATH=${PATH}:${HOME}/.cargo/bin" >> "$GITHUB_ENV" | ||
rustc --version | ||
python -m pip install build setuptools setuptools-rust | ||
- name: Build wheels | ||
run: python -m build --outdir wheelhouse | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: esat-wheels-windows-py${{matrix.python_version}} | ||
name: esat-wheels-${{ matrix.os }}-py${{matrix.python_version}} | ||
path: ./wheelhouse/*.whl | ||
|
||
# build_wheels: | ||
# name: Build wheels on ${{ matrix.os }} | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# matrix: | ||
# # macos-13 is an intel runner, macos-14 is apple silicon | ||
# os: [ubuntu-latest, macos-13, macos-14] | ||
# python_version: ["3.10", "3.11", "3.12"] | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: ${{ matrix.python_version }} | ||
# - name: Install setuptools | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable | ||
# echo "PATH=${PATH}:${HOME}/.cargo/bin" >> "$GITHUB_ENV" | ||
# rustc --version | ||
# python -m pip install build setuptools setuptools-rust | ||
# - name: Build wheels | ||
# run: | ||
# python -m build --outdir wheelhouse | ||
# - uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: esat-wheels-${{ matrix.os }}-py${{matrix.python_version}} | ||
# path: ./wheelhouse/*.whl | ||
# | ||
# build_windows_wheel: | ||
# name: Build wheels on windows-latest | ||
# runs-on: windows-latest | ||
# strategy: | ||
# matrix: | ||
# python_version: [ "3.10", "3.11", "3.12" ] | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: ${{ matrix.python_version }} | ||
# - name: Install setuptools | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable | ||
# echo "${HOME}/.cargo/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
# python -m pip install build setuptools setuptools-rust | ||
# - name: Build wheels | ||
# run: python -m build --outdir wheelhouse | ||
# - uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: esat-wheels-windows-py${{matrix.python_version}} | ||
# path: ./wheelhouse/*.whl |
This file contains 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
This file contains 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
Oops, something went wrong.