Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build more wheels #138

Merged
merged 4 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 32 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ on:
pull_request:
# Allow manual runs through the web UI
workflow_dispatch:
schedule:
# ┌───────── minute (0 - 59)
# │ ┌───────── hour (0 - 23)
# │ │ ┌───────── day of the month (1 - 31)
# │ │ │ ┌───────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT)
- cron: '0 7 * * *' # Every day at 07:00 UTC

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -81,7 +88,10 @@ jobs:

cron:
if: |
github.event_name == 'workflow_dispatch' || (
(
github.event_name == 'workflow_dispatch' ||
github.event_name == 'schedule'
) || (
github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'Run cron CI')
)
Expand All @@ -97,15 +107,11 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

publish:
# Build wheels when pushing to any branch except main
# Build wheels when on a branch or when label is set
# publish.yml will only publish if tagged ^v.*
if: |
(
github.event_name != 'pull_request' && (
github.ref_name != 'main' ||
github.event_name == 'workflow_dispatch'
)
) || (
github.event_name != 'pull_request'
|| (
github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'Run publish')
)
Expand All @@ -117,9 +123,26 @@ jobs:
test_command: 'pytest -p no:warnings --doctest-rst --pyargs streamtracer'
submodules: false
targets: |
- cp3{10,11,12}-manylinux*_x86_64
- cp3{10,11,12}-manylinux_aarch64
Copy link
Contributor

@nabobalis nabobalis May 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think with this, we cover basically everything (normal)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so. Building for ppc etc is rather pointless unless someone asks for it.

- cp3{10,11,12}-manylinux_x86_64
- cp3{10,11,12}-musllinux_x86_64
- cp3{10,11,12}-musllinux_aarch64
- cp3{10,11,12}-macosx_x86_64
- cp3{10,11,12}-macosx_arm64
- cp3{10,11,12}-win_amd64
secrets:
pypi_token: ${{ secrets.pypi_token }}

notify:
if: always() && github.event_name != 'pull_request' && github.ref_name == 'main'
needs: [publish, cron]
runs-on: ubuntu-latest
steps:
- uses: Cadair/matrix-notify-action@main
with:
matrix_token: ${{ secrets.matrix_access_token }}
github_token: ${{ secrets.GITHUB_TOKEN }}
homeserver: ${{ secrets.matrix_homeserver }}
roomid: '!jfEXWJFdXwYnBWsiqk:openastronomy.org'
ignore_pattern: '.*Load.*'
summarise_success: true
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ ndarray = {version = "0.15", features = ["rayon"]}

[dev-dependencies]
float_eq = "1.0.0"

[lints.clippy]
needless_return = "allow"
implicit_return = "warn"
nabobalis marked this conversation as resolved.
Show resolved Hide resolved
Loading