Skip to content

feat(jsi): support new arch #162

feat(jsi): support new arch

feat(jsi): support new arch #162

Workflow file for this run

name: Pull Request Build
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: write
pull-requests: write
jobs:
fetch-latest-ipa:
name: Get latest stable ipa
runs-on: ubuntu-latest
outputs:
ipa_url: ${{ steps.get-latest-ipa.outputs.ipa_url }}
steps:
- name: Get latest Discord ipa
id: get-latest-ipa
run: |
RESPONSE=$(curl -s -H "Accept: application/json" https://ipa.aspy.dev/discord/stable/)
LATEST_IPA=$(echo $RESPONSE | jq -r '.[-1].url' | sed 's/^\.\///')
FULL_URL="https://ipa.aspy.dev/discord/stable/$LATEST_IPA"
echo "ipa_url=$FULL_URL" >> $GITHUB_OUTPUT
build:
name: Build Unbound
needs: fetch-latest-ipa
uses: ./.github/workflows/build.yml
with:
ipa_url: ${{ needs.fetch-latest-ipa.outputs.ipa_url }}
release: false
caller_workflow: "ci"
secrets: inherit
comment-pr:
name: Comment on PR
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1
- name: Delete existing comment
uses: izhangzhihao/delete-comment@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_user_name: github-actions[bot]
issue_number: ${{ github.event.number }}
- name: Get build info
id: build-info
run: |
COMMIT_HASH=$(git rev-parse --short HEAD)
BUILD_TIME=$(date "+%Y-%m-%d %H:%M:%S")
echo "hash=$COMMIT_HASH" >> $GITHUB_OUTPUT
echo "time=$BUILD_TIME" >> $GITHUB_OUTPUT
- name: Comment on current PR
uses: thollander/actions-comment-pull-request@v3
with:
message: |
**Commit**: [#${{ steps.build-info.outputs.hash }}](https://github.com/${{ github.repository }}/commit/${{ github.event.pull_request.head.sha }})
**Build Time**: `${{ steps.build-info.outputs.time }}`
#### Artifacts:
- [**${{ needs.build.outputs.deb_filename }}**](${{ needs.build.outputs.deb_url }})
- [**${{ needs.build.outputs.simulator_filename }}**](${{ needs.build.outputs.simulator_url }})
- [**${{ needs.build.outputs.ipa_filename }}**](${{ needs.build.outputs.ipa_url }})
<sub>This comment was automatically generated. [View workflow run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})</sub>
comment-tag: build-result
github-token: ${{ secrets.GITHUB_TOKEN }}