-
Notifications
You must be signed in to change notification settings - Fork 1
Switch to emake #2
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
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
228694b
Switch to emake
Eeems 76bbb1b
Fix branch reference
Eeems 815ff68
Remove nonexistant needs
Eeems ef22799
Review feedback
Eeems 8a1f5fd
Remove unneeded from Makefile
Eeems c20dd0b
Use emake for wheel in makefile
Eeems d7fc045
Only build for target versions
Eeems 4f1fdab
Remove test since there are no tests
Eeems 83d680c
Reduce required permisions
Eeems File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,151 @@ | ||
| name: Check and Build | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| workflow_dispatch: | ||
| release: | ||
| types: | ||
| - released | ||
|
|
||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: Lint codebase | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python: &python-versions | ||
| - "3.11" | ||
| - "3.12" | ||
| - "3.13" | ||
| - "3.14" | ||
| steps: | ||
| - name: Checkout the Git repository | ||
| uses: actions/checkout@v6 | ||
| - uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| cache: pip | ||
| - &install-emake | ||
| name: Install emake | ||
| run: pip install emake | ||
| - name: Run lint | ||
| run: emake lint | ||
|
Eeems marked this conversation as resolved.
|
||
|
|
||
| build-sdist: | ||
| name: Build sdist | ||
| needs: &build-needs | ||
| - lint | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout the Git repository | ||
| uses: actions/checkout@v6 | ||
| - *install-emake | ||
| - name: Building sdist | ||
| run: emake build --sdist | ||
| - uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: pip-sdist | ||
| path: dist/* | ||
| if-no-files-found: error | ||
|
|
||
| build-any-wheel: | ||
| name: Build wheel | ||
|
Eeems marked this conversation as resolved.
|
||
| needs: *build-needs | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout the Git repository | ||
| uses: actions/checkout@v6 | ||
| - *install-emake | ||
| - name: Building wheel | ||
| run: emake build --wheel | ||
| - uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: pip-wheel-none-any | ||
| path: dist/* | ||
| if-no-files-found: error | ||
|
|
||
| build-wheel: | ||
| name: Build wheel | ||
| needs: *build-needs | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python: *python-versions | ||
| arch: | ||
| - aarch64 | ||
| - armv7l | ||
| libc: | ||
| - glibc | ||
| steps: | ||
| - name: Checkout the Git repository | ||
| uses: actions/checkout@v6 | ||
| - *install-emake | ||
| - name: Building wheel | ||
| run: | | ||
| emake build \ | ||
| --native-wheel \ | ||
| --arch ${{ matrix.arch }} \ | ||
| --libc ${{ matrix.libc }} \ | ||
| --python ${{ matrix.python }} | ||
|
Eeems marked this conversation as resolved.
|
||
| - uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: pip-wheel-${{ matrix.python }}-${{ matrix.arch }}-${{ matrix.libc }} | ||
| path: dist/* | ||
| if-no-files-found: error | ||
|
|
||
| publish: | ||
| name: Publish to PyPi | ||
| if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags') | ||
| needs: &release-needs | ||
| - build-sdist | ||
| - build-any-wheel | ||
| - build-wheel | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| environment: | ||
| name: pypi | ||
| url: https://pypi.org/p/launcherctl | ||
| steps: | ||
| - name: Download pip packages | ||
| id: download | ||
| uses: actions/download-artifact@v8 | ||
| with: | ||
| pattern: pip-* | ||
| merge-multiple: true | ||
| path: dist | ||
| - name: Publish package distributions to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| packages-dir: ${{ steps.download.outputs.download-path }} | ||
| skip-existing: true | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| release: | ||
| name: Add release artifacts | ||
| if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags') | ||
| needs: *release-needs | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - name: Checkout the Git repository | ||
| uses: actions/checkout@v6 | ||
| - name: Download artifact | ||
| id: download | ||
| uses: actions/download-artifact@v8 | ||
| with: | ||
| pattern: pip-* | ||
| merge-multiple: true | ||
| path: dist | ||
| - name: Upload to release | ||
| run: find . -type f | xargs -rI {} gh release upload "$TAG" {} --clobber | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| TAG: ${{ github.event.release.tag_name }} | ||
| working-directory: ${{ steps.download.outputs.download-path }} | ||
|
Eeems marked this conversation as resolved.
|
||
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.