-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github actions: Create install bundle workflow
- Loading branch information
Showing
3 changed files
with
40 additions
and
4 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: Bundle | ||
name: Bundle as μpkg package | ||
|
||
on: | ||
push: | ||
|
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,32 @@ | ||
name: Bundle as install package | ||
|
||
on: | ||
push: | ||
branches: ['*'] | ||
tags: ['!v*'] | ||
workflow_call: {} | ||
|
||
jobs: | ||
install-bundle: | ||
name: Create upkg-install.tar.gz | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download μpkg bundle | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: upkg.tar.gz | ||
- name: Create install package | ||
run: | | ||
checksum=$(shasum -a 256 upkg.tar.gz | cut -d ' ' -f1) | ||
mkdir -p install/bin install/lib/upkg/.upkg/.packages install/lib/upkg/.upkg/.bin | ||
tar -xzC install/lib/upkg/upkg.tar@$checksum -f upkg.tar.gz | ||
ln -sT install/lib/upkg/.upkg/.packages/upkg.tar@$checksum install/lib/upkg/.upkg/upkg | ||
ln -sT install/bin/upkg install/lib/upkg/.upkg/.bin/upkg | ||
- name: Create upkg-install.tar.gz | ||
run: tar -czC install -f upkg-install.tar.gz bin lib | ||
- name: Upload upkg-install.tar.gz | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: upkg-install.tar.gz | ||
path: upkg-install.tar.gz | ||
retention-days: 1 |
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