Skip to content

Create and publish hybrid-runtime binaries #22

Create and publish hybrid-runtime binaries

Create and publish hybrid-runtime binaries #22

Workflow file for this run

#
name: Create and publish hybrid-runtime binaries
# Configures this workflow to run every time a release is created
on:
release:
types: [published]
#push:
# branches: ['main']
jobs:
build3:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and export
uses: docker/build-push-action@v6
with:
file: docker/runtime.dockerfile
tags: myimage:latest
push: false
load: true
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and push
uses: docker/build-push-action@v6
with:
context: cortexm_console
file: cortexm_console/Dockerfile
platforms: linux/arm64
tags: mybuild:latest
push: false
load: true
- uses: shrink/actions-docker-extract@v3
id: extract
with:
image: mybuild:latest
path: /cortexm_console
destination: dist
- name: build binary
uses: addnab/docker-run-action@v3
with:
image: myimage:latest
options: -v ${{ github.workspace }}:/runtime -w /runtime/runtime/shim
run: |
cargo build --target aarch64-unknown-linux-musl
- name: build binary
uses: addnab/docker-run-action@v3
with:
image: myimage:latest
options: -v ${{ github.workspace }}:/runtime -w /runtime/runtime/runtime
run: |
cargo build --target aarch64-unknown-linux-musl
- name: Tar release
run: |
tar -cvf hybrid.tar -C ${{ github.workspace }}/runtime/shim/target/aarch64-unknown-linux-musl/debug containerd-shim-containerd-hybrid
tar -rvf hybrid.tar -C ${{ github.workspace }}/runtime/runtime/target/aarch64-unknown-linux-musl/debug hybrid-cli
tar -rvf hybrid.tar -C ${{ github.workspace }}/runtime pause.sh resize.sh
tar -rvf hybrid.tar -C ${{ github.workspace }}/dist cortexm_console
gzip hybrid.tar
- name: Release with Notes
uses: softprops/action-gh-release@v1
with:
files: |
hybrid.tar.gz