Skip to content

Commit

Permalink
Build and release tdex.s9pk on push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
Janaka-Steph committed Apr 26, 2023
1 parent 38a8f65 commit 94b2311
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/release-embassy-os.yml
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 }}

0 comments on commit 94b2311

Please sign in to comment.