feat(fast): preadIntoOffset for stacked-buffer MoE consumers + PAPPS … #7
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
| name: Auto Release Pipeline | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| tag-and-release: | |
| name: Create SemVer Tag and Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Essential for retrieving all tags to calculate the next semver bump | |
| - name: Calculate release version (b<commit_count>) | |
| id: tag_version | |
| run: | | |
| COMMIT_COUNT=$(git rev-list --count HEAD) | |
| TAG_NAME="b${COMMIT_COUNT}" | |
| echo "Calculated tag: $TAG_NAME" | |
| echo "new_tag=$TAG_NAME" >> $GITHUB_OUTPUT | |
| # Create and push the tag manually | |
| git tag $TAG_NAME | |
| git push origin $TAG_NAME | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.tag_version.outputs.new_tag }} | |
| name: Release ${{ steps.tag_version.outputs.new_tag }} | |
| body: "Automated release based on commit count ${{ steps.tag_version.outputs.new_tag }}" | |
| generate_release_notes: true | |
| - name: Trigger SwiftLM Dependency Bump | |
| uses: actions/github-script@v6 | |
| env: | |
| PR_TOKEN: ${{ secrets.SWIFTLM_PR_TOKEN || secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }} | |
| with: | |
| github-token: ${{ env.PR_TOKEN }} | |
| script: | | |
| try { | |
| await github.rest.repos.createDispatchEvent({ | |
| owner: 'SharpAI', | |
| repo: 'SwiftLM', | |
| event_type: 'dependency_bump', | |
| client_payload: { | |
| source_repo: context.repo.repo, | |
| new_tag: '${{ steps.tag_version.outputs.new_tag }}' | |
| } | |
| }); | |
| console.log("Successfully dispatched dependency_bump event to SharpAI/SwiftLM"); | |
| } catch (error) { | |
| console.log("Dispatch failed. Ensure SWIFTLM_PR_TOKEN is set in repository secrets with repo scoping.", error); | |
| } |