Integration/1.12.3 #15
Workflow file for this run
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
name: Build Service | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths-ignore: ['*.md'] | |
branches: ['main', 'master'] | |
push: | |
paths-ignore: ['*.md'] | |
branches: ['main', 'master'] | |
jobs: | |
BuildPackage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prepare StartOS SDK | |
uses: Start9Labs/sdk@v1 | |
- name: Checkout cross build | |
uses: actions/checkout@v2 | |
with: | |
repository: Start9Labs/rust-musl-cross | |
path: rust-musl-cross | |
- name: Build rust-musl-builder | |
run: | | |
chmod a+x rust-musl-cross/build.sh | |
cd rust-musl-cross | |
./build.sh | |
shell: bash | |
- name: Build md-packer | |
run: cargo install --git=https://github.com/Start9Labs/md-packer.git --branch=main | |
- name: Checkout services repository | |
uses: actions/checkout@v3 | |
- name: Build the service package | |
id: build | |
run: | | |
git submodule update --init --recursive | |
start-sdk init | |
make | |
PACKAGE_ID=$(yq -oy ".id" manifest.*) | |
echo "::set-output name=package_id::$PACKAGE_ID" | |
shell: bash | |
- name: Upload .s9pk | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ steps.build.outputs.package_id }}.s9pk | |
path: ./${{ steps.build.outputs.package_id }}.s9pk |