v0.8.1 #13
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: Release binaries | |
on: | |
release: | |
types: [created] | |
env: | |
DNF_PKGS: | | |
xorriso | |
rpm | |
limine | |
systemd | |
btrfs-progs | |
e2fsprogs | |
xfsprogs | |
dosfstools | |
grub2 | |
parted | |
gdisk | |
util-linux-core | |
systemd-container | |
grub2-efi | |
uboot-images-armv8 | |
uboot-tools | |
rustc | |
qemu-user-static-aarch64 | |
qemu-user-binfmt | |
qemu-kvm | |
qemu-img | |
cargo | |
systemd-devel | |
mkpasswd | |
clang-devel | |
moby-engine | |
squashfs-tools | |
erofs-utils | |
grub2-tools | |
grub2-tools-extra | |
isomd5sum | |
jobs: | |
build: | |
strategy: | |
matrix: | |
arch: [x86_64, aarch64] | |
# run job on ubuntu-latest unless aarch64 then arm64 | |
runs-on: ${{ matrix.arch == 'aarch64' && 'arm64' || 'ubuntu-latest' }} | |
container: | |
image: ghcr.io/terrapkg/builder:f38 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
dnf install -y $DNF_PKGS | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Build | |
run: cargo build --release | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ matrix.arch }} | |
path: target/release/terra | |
- name: Add binary to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/release/katsu | |
asset_name: katsu-${{ matrix.arch }} | |
tag: ${{ github.ref }} | |
# release_name: ${{ github.ref }} | |
overwrite: true |