-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
graalpy release job + prefix releases with implementation
- Loading branch information
Showing
4 changed files
with
105 additions
and
11 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build Python | ||
name: Build CPython | ||
|
||
on: | ||
workflow_dispatch: | ||
|
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: Build and publish GraalPy | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
graalpy_version: | ||
required: true | ||
type: string | ||
beta: | ||
required: false | ||
type: boolean | ||
default: false | ||
workflow_call: | ||
inputs: | ||
graalpy_version: | ||
required: true | ||
type: string | ||
beta: | ||
required: false | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
build: | ||
name: Build GraalPy ${{ inputs.graalpy_version }} | ||
uses: ./.github/workflows/repackage_graalpy.yml | ||
with: | ||
graalpy_version: ${{ inputs.graalpy_version }} | ||
platforms: "linux-x86_64,linux-aarch64,macos,windows" | ||
|
||
publish: | ||
name: Publish GraalPy ${{ inputs.graalpy_version }} | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get tags | ||
run: git fetch --tags origin | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: graalpy-* | ||
path: /tmp/graalpy/ | ||
merge-multiple: true | ||
|
||
- name: Get latest | ||
run: | | ||
echo "LATEST_TAG=$(./scripts/pick_semver.sh ${{ inputs.graalpy_version }} ${{ inputs.beta }} true)" >> $GITHUB_ENV | ||
- name: Pick tag | ||
id: pick_tag | ||
run: | | ||
SELECTED_TAG=$(./scripts/pick_semver.sh ${{ inputs.graalpy_version }} ${{ inputs.beta }}) | ||
echo "SELECTED_TAG=$SELECTED_TAG" >> $GITHUB_ENV | ||
echo "::set-output name=release_tag::$SELECTED_TAG" | ||
- name: Create release | ||
run: | | ||
gh release create ${{ env.SELECTED_TAG }} \ | ||
--title ${{ env.SELECTED_TAG }} \ | ||
--target ${{ github.sha }} \ | ||
${{ env.LATEST_TAG && format('--generate-notes --notes-start-tag {0}', env.LATEST_TAG) || format('--notes "Python {0}"', inputs.graalpy_version) }} \ | ||
${{ inputs.beta && '--prerelease' || '' }} | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload files | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: /tmp/graalpy/graalpy*.zip | ||
tag_name: ${{ env.SELECTED_TAG }} | ||
|
||
outputs: | ||
release_tag: ${{ steps.pick_tag.outputs.release_tag }} | ||
|
||
update_installers: | ||
if: false | ||
name: Update installers | ||
needs: publish | ||
permissions: | ||
contents: write | ||
uses: ./.github/workflows/update_nodejs_installers.yml | ||
with: | ||
graalpy_version: ${{ inputs.graalpy_version }} | ||
release_tag: ${{ needs.publish.outputs.release_tag }} | ||
beta: ${{ inputs.beta }} | ||
secrets: inherit |
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