-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github ci: start fedora 37 for running 'cargo test'
Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Ming Lei <[email protected]>
- Loading branch information
Showing
7 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mkosi.builddir/ | ||
mkosi.output/ | ||
mkosi.cache/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/bash | ||
|
||
# | ||
# This is a build script file for OS image generation using mkosi (https://github.com/systemd/mkosi). | ||
# It is invoked in a build environment, with the following set well-known variables: | ||
# | ||
# $SRCDIR | ||
# $DESTDIR | ||
# $BUILDDIR | ||
# | ||
|
||
set -eo pipefail | ||
|
||
mkdir -p $DESTDIR/root/ | ||
echo "systemctl restart systemd-networkd" >> $DESTDIR/root/.bash_profile | ||
chmod +x $DESTDIR/root/.bash_profile | ||
|
||
# Copy tests into the dest | ||
mkdir -p $DESTDIR/usr/share | ||
cp -fr $SRCDIR $DESTDIR/usr/share/libublk-rs | ||
|
||
cd $DESTDIR/usr/share/libublk-rs | ||
cargo build | ||
cd - |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[Distribution] | ||
Distribution=fedora |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi). | ||
|
||
[Output] | ||
Format=gpt_btrfs | ||
Bootable=yes | ||
HostonlyInitrd=yes | ||
OutputDirectory=mkosi.output | ||
QCow2=yes | ||
|
||
[Content] | ||
BuildDirectory=mkosi.builddir | ||
BuildSources=.. | ||
Cache=mkosi.cache | ||
SourceFileTransfer=copy-git-cached | ||
WithNetwork=yes | ||
|
||
[Host] | ||
QemuHeadless=yes | ||
Netdev=yes | ||
Ssh=yes | ||
SshTimeout=300 | ||
|
||
[Validation] | ||
Password= | ||
Autologin=yes | ||
|
||
[Partitions] | ||
RootSize=6G |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This is a settings file for OS image generation using mkosi (https://github.com/systemd/mkosi). | ||
|
||
[Distribution] | ||
Distribution=fedora | ||
Release=37 | ||
|
||
[Content] | ||
BuildPackages= | ||
diffutils | ||
git | ||
libtool | ||
make | ||
Packages= | ||
fio | ||
fio-engine-libaio | ||
util-linux | ||
which | ||
rust | ||
cargo | ||
clang | ||
clang-devel |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ublk_drv |