Skip to content

chore: release v0.1.7 #98

chore: release v0.1.7

chore: release v0.1.7 #98

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
tags: ["v*.*.*"]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build - ${{ matrix.platform.arch }}
strategy:
matrix:
platform:
- arch: x86_64
target: x86_64-unknown-linux-musl
runs-on: ubuntu-latest
- arch: aarch64
target: aarch64-unknown-linux-musl
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build base image
env:
ARCH: ${{ matrix.platform.arch }}
run: |
if [ "$ARCH" != "$(uname -m)" ]; then
sudo apt-get update
sudo apt-get install qemu-user-static
fi
cargo run --bin build-img -- -a $ARCH
cargo clean
- name: Upload artifacts - base image
uses: actions/upload-artifact@v4
with:
name: base-${{ matrix.platform.target }}
path: |
base.tar.xz
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
target: ${{ matrix.platform.target }}
args: "--locked --release --features embedded_image"
strip: true
- name: Rename binary
env:
TARGET: ${{ matrix.platform.target }}
run: |
mv "target/$TARGET/release/dive" "dive-$TARGET"
- name: Upload artifacts - binary
uses: actions/upload-artifact@v4
with:
name: binary-${{ matrix.platform.target }}
path: dive-*
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: dive-*