ci: switch from Cirrus to Github Actions

This commit is contained in:
Erik Arvstedt 2025-06-26 23:22:51 +02:00
parent 7d33e9d5e9
commit 5516bcc43b
No known key found for this signature in database
GPG key ID: 33312B944DD97846
9 changed files with 130 additions and 50 deletions

View file

@ -3,19 +3,17 @@
# This script can also be run locally for testing:
# ./build.sh <scenario>
#
# When variable CIRRUS_CI is unset, this script leaves no persistent traces on the host system.
# When variable GITHUB_ACTIONS is unset, this script leaves no persistent traces on the host system.
set -euo pipefail
scenario=$1
if [[ -v CIRRUS_CI ]]; then
if [[ -v GITHUB_ACTIONS ]]; then
if [[ ! -e /dev/kvm ]]; then
>&2 echo "No KVM available on VM host."
exit 1
fi
# Enable KVM access for nixbld users
chmod o+rw /dev/kvm
fi
cd "${BASH_SOURCE[0]%/*}"