forked from tiero/tdex-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and release tdex.s9pk on push to master
- Loading branch information
Janaka-Steph
committed
Apr 26, 2023
1 parent
38a8f65
commit 94b2311
Showing
1 changed file
with
53 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: "Release EmbassyOS app package" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
release-embassy-os: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
install: true | ||
|
||
- name: Enable cross-arch emulated builds in docker | ||
run: docker run --privileged --rm linuxkit/binfmt:v0.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo snap install yq deno | ||
sudo apt-get install -y build-essential openssl libssl-dev libc6-dev clang libclang-dev ca-certificates | ||
- name: Install Rust nightly | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
|
||
- name: Build and install embassy-sdk | ||
run: | | ||
git clone --recursive https://github.com/Start9Labs/embassy-os.git | ||
cd embassy-os/backend/ | ||
./install-sdk.sh | ||
embassy-sdk init | ||
- name: Checkout the project locally | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get version from manifest | ||
run: echo "version=$(yq '.version' manifest.yaml)" >> $GITHUB_OUTPUT | ||
id: get_version | ||
|
||
- name: Build the tdex s9pk | ||
run: make | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: tdex.s9pk | ||
tag_name: ${{ steps.get_version.outputs.version }} |