Skip to content

Commit

Permalink
Include (un)installer into release assets (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono authored Oct 22, 2024
1 parent 254e102 commit 0e0d3d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ jobs:
pattern: artifacts-*
path: target/distrib/
merge-multiple: true
- name: Compile installer/uninstaller
run: |
TARGET_TRIPLE="$(rustc -Vv | awk '/^host/ { print $2 }')"
AMBER="$PWD/target/distrib/amber-${TARGET_TRIPLE}/amber"
$AMBER ./setup/install.ab ./target/distrib/install.sh
$AMBER ./setup/uninstall.ab ./target/distrib/uninstall.sh
- id: cargo-dist
shell: bash
run: |
Expand All @@ -183,6 +189,8 @@ jobs:
# Parse out what we just built and upload it to scratch storage
echo "paths<<EOF" >> "$GITHUB_OUTPUT"
jq --raw-output ".upload_files[]" dist-manifest.json >> "$GITHUB_OUTPUT"
echo "$PWD/target/distrib/install.sh" >> "$GITHUB_OUTPUT"
echo "$PWD/target/distrib/uninstall.sh" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
Expand Down

0 comments on commit 0e0d3d1

Please sign in to comment.