Skip to content

Bump version to 0.8.0 #147

Bump version to 0.8.0

Bump version to 0.8.0 #147

Workflow file for this run

on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust for i686
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
target: i686-unknown-uefi
- name: Install Rust for x86_64
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
target: x86_64-unknown-uefi
- name: Build for i686
uses: actions-rs/cargo@v1
with:
command: build
args: --package towboot --target i686-unknown-uefi
- name: Upload i686 artifact
uses: actions/upload-artifact@v3
with:
name: towboot-debug-i686.efi
path: target/i686-unknown-uefi/debug/towboot.efi
- name: Build for x86_64
uses: actions-rs/cargo@v1
with:
command: build
args: --package towboot --target x86_64-unknown-uefi
- name: Upload x86_64 artifact
uses: actions/upload-artifact@v3
with:
name: towboot-debug-x86_64.efi
path: target/x86_64-unknown-uefi/debug/towboot.efi
- name: Build towbootctl for x86_64-linux
uses: actions-rs/cargo@v1
with:
command: build
args: --package towbootctl --target x86_64-unknown-linux-gnu --features=binary
- name: Upload x86_64-linux artifact
uses: actions/upload-artifact@v3
with:
name: towbootctl-debug-x86_64-linux
path: target/x86_64-unknown-linux-gnu/debug/towbootctl
- name: Install qemu
run: sudo apt-get update && sudo apt-get install -y qemu-system-x86
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
# https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --package tests