-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into jetbrains-toolbox
- Loading branch information
Showing
10 changed files
with
178 additions
and
115 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 |
---|---|---|
|
@@ -46,19 +46,9 @@ jobs: | |
run: cargo build --target-dir=build --release --verbose --target=x86_64-unknown-linux-musl --all-features | ||
|
||
- name: Build aarch64 binary | ||
run: cross build --target-dir=build --release --verbose --target=aarch64-unknown-linux-musl --all-features | ||
|
||
- name: Move binaries to build directory | ||
run: | | ||
mv build/x86_64-unknown-linux-musl/release/linutil build/linutil | ||
mv build/aarch64-unknown-linux-musl/release/linutil build/linutil-aarch64 | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Commit Linutil | ||
file_pattern: "build/linutil build/linutil-aarch64" | ||
add_options: '--force' | ||
if: success() | ||
cross build --target-dir=build --release --verbose --target=aarch64-unknown-linux-musl --all-features | ||
mv ./build/aarch64-unknown-linux-musl/release/linutil ./build/aarch64-unknown-linux-musl/release/linutil-aarch64 | ||
- name: Extract Version | ||
id: extract_version | ||
|
@@ -80,32 +70,19 @@ jobs: | |
append_body: true | ||
generate_release_notes: true | ||
files: | | ||
./build/linutil | ||
./build/linutil-aarch64 | ||
./build/x86_64-unknown-linux-musl/release/linutil | ||
./build/aarch64-unknown-linux-musl/release/linutil-aarch64 | ||
./start.sh | ||
./startdev.sh | ||
prerelease: true | ||
env: | ||
version: ${{ env.version }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Setup Preview | ||
run: | | ||
echo "$(pwd)/build" >> $GITHUB_PATH | ||
- name: Generate preview | ||
uses: charmbracelet/[email protected] | ||
with: | ||
path: "docs/assets/preview.tape" | ||
|
||
- name: Move preview | ||
run: | | ||
mv preview.gif docs/assets/preview.gif | ||
- name: Upload preview | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
commit_message: Preview for ${{ env.version }} | ||
file_pattern: "docs/assets/preview.gif" | ||
add_options: "--force" | ||
if: success() | ||
name: linutil-artifact | ||
path: build/x86_64-unknown-linux-musl/release/linutil | ||
compression-level: 0 | ||
overwrite: true |
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,55 @@ | ||
name: LinUtil Preview | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
run_id: | ||
description: 'Run ID of LinUtil Release' | ||
required: true | ||
workflow_run: | ||
workflows: ["LinUtil Release"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
generate_preview: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set Run ID | ||
run: | | ||
if [ "${{ github.event_name }}" == "workflow_run" ]; then | ||
echo "run_id=${{ github.event.workflow_run.id }}" >> $GITHUB_ENV | ||
else | ||
echo "run_id=${{ github.event.inputs.run_id }}" >> $GITHUB_ENV | ||
fi | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: linutil-artifact | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
run-id: ${{ env.run_id }} | ||
|
||
- name: Set env | ||
run: | | ||
chmod +x linutil | ||
echo "${{ github.workspace }}" >> $GITHUB_PATH | ||
- name: Generate preview | ||
uses: charmbracelet/[email protected] | ||
with: | ||
path: "docs/assets/preview.tape" | ||
|
||
- name: Move preview | ||
run: mv preview.gif docs/assets/preview.gif | ||
|
||
- name: Upload preview | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Preview for ${{ env.run_id }} | ||
file_pattern: "docs/assets/preview.gif" | ||
add_options: "--force" | ||
if: success() |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.