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

ENH: Add support for local builds #125

Merged
merged 19 commits into from
May 25, 2022
Merged

Conversation

larsoner
Copy link
Member

@larsoner larsoner commented May 23, 2022

  • Fix bug where we were patching 3.9 even though we've mode to 3.10 (unclear to me why/how this hasn't created an error yet)
  • Move most calls to scripts
  • Add assets/current_version.txt so that 1.0 appears in only two places now (that file and mne-python_1.0/recipes/construct.yaml (i.e., DRY)
  • Start skeleton build_local.sh to replicate remote build
  • Add to README what to run locally to test/build
  • Get it building properly locally on Linux
  • Get it building properly locally on Windows
  • Get it building properly on macOS Intel
  • Get CIs green

@larsoner larsoner changed the title WIP: Add support for local builds ENH: Add support for local builds May 24, 2022
@larsoner
Copy link
Member Author

Okay this one is good to go @hoechenberger

@larsoner larsoner mentioned this pull request May 24, 2022
15 tasks
Comment on lines +38 to +39
signing_identity_name: # [osx] Used for productsign
notarization_identity_name: # [osx] Used for codesign
Copy link
Member

Choose a reason for hiding this comment

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

This should be reverted for signing on CI, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

See changes in CI. Rather than always have it in and remove for pull requests, I do the opposite and always have it blank but add it for non-PRs (main/release builds). This makes it work better for local builds as a useful side effect.

Comment on lines +117 to +120
if: ${{ runner.os == 'macOS' && github.event_name != 'pull_request' }}
shell: bash -el {0}
run: |
sed -i "" "s/9779L28NP8//" recipes/mne-python_1.0/construct.yaml
sed -i "" "s/_name: *# \[osx\]/_name: 9779L28NP8 # \[osx\]/" ${RECIPE_DIR}/construct.yaml
Copy link
Member Author

Choose a reason for hiding this comment

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

Specifically this set of changes where the logic is now: if not a pull request, add the _name (rather than: if a pull request, remove the _name)

@larsoner
Copy link
Member Author

This one should be good to go I think @hoechenberger

@hoechenberger hoechenberger merged commit 9039eb6 into mne-tools:main May 25, 2022
@hoechenberger
Copy link
Member

Thanks @larsoner!

@larsoner larsoner deleted the local branch May 25, 2022 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants