-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[No QA] Upload victory-chart-renderer Linux x64 to GitHub Releases #92585
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
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a8731c2
Add victory-chart-renderer Linux binary to deploy releases
roryabraham 7c1d83c
Gate createRelease on victory-chart-renderer build success
roryabraham afaa0de
Create release when chart build fails; fail after upload
roryabraham a85f5b3
Announce chart build failure in Slack without failing deploy
roryabraham 3e2e617
Move chart build failure Slack announce to build workflow
roryabraham 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 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,75 @@ | ||
| name: Build victory-chart-renderer | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| ref: | ||
| description: Git ref to checkout and build | ||
| type: string | ||
| required: true | ||
| release-tag: | ||
| description: GitHub Release tag for this deploy (used in failure notifications) | ||
| type: string | ||
| required: true | ||
|
|
||
| outputs: | ||
| BINARY_FILENAME: | ||
| description: Filename of the compiled Linux x64 binary | ||
| value: ${{ jobs.build.outputs.BINARY_FILENAME }} | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build victory-chart-renderer (Linux x64) | ||
| runs-on: blacksmith-8vcpu-ubuntu-2404 | ||
| outputs: | ||
| BINARY_FILENAME: victory-chart-renderer-linux-x64 | ||
| steps: | ||
| - name: Checkout | ||
| uses: useblacksmith/checkout@c9796daa2a4bdebdab5bd16be2c09a70cd4e1121 # v1 | ||
| with: | ||
| ref: ${{ inputs.ref }} | ||
|
|
||
| - name: Setup Node | ||
| uses: ./.github/actions/composite/setupNode | ||
|
|
||
| - name: Setup Bun | ||
| # v2.0.2 | ||
| uses: oven-sh/setup-bun@81fe9a935c4d9aed6ff8654c7e6e27f3df8dc3ae | ||
| with: | ||
| bun-version-file: .bun-version | ||
|
|
||
| - name: Build victory-chart-renderer Linux x64 binary | ||
| run: npm run server:vcr:build:linux | ||
|
|
||
| - name: Verify compiled binary is executable | ||
| run: test -x server/victory-chart-renderer/dist/victory-chart-renderer-linux-x64 | ||
|
|
||
| - name: Upload victory-chart-renderer Linux x64 artifact | ||
| # v6 | ||
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f | ||
| with: | ||
| name: victory-chart-renderer-linux-x64-artifact | ||
| path: server/victory-chart-renderer/dist/victory-chart-renderer-linux-x64 | ||
|
|
||
| - name: Log victory-chart-renderer build failure | ||
| if: failure() || cancelled() | ||
| run: | | ||
| echo "::error::victory-chart-renderer Linux x64 build did not succeed for release ${{ inputs.release-tag }}. GitHub Release will not include victory-chart-renderer-linux-x64." | ||
|
|
||
| - name: Announce victory-chart-renderer build failure in Slack | ||
| if: failure() || cancelled() | ||
| # v3 | ||
| uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e | ||
| with: | ||
| status: custom | ||
| custom_payload: | | ||
| { | ||
| channel: '#announce', | ||
| attachments: [{ | ||
| color: 'warning', | ||
| text: `⚠️ ${process.env.AS_REPO} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|victory-chart-renderer build> failed for deploy release <https://github.com/Expensify/App/releases/tag/${{ inputs.release-tag }}|${{ inputs.release-tag }}>. victory-chart-renderer-linux-x64 will not be attached.`, | ||
| }] | ||
| } | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.token }} | ||
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} |
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.
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.