Make images in gitlab ci
This commit is contained in:
parent
2f7ff3d625
commit
e7375348e0
4 changed files with 40 additions and 38 deletions
31
Makefile
31
Makefile
|
@ -40,12 +40,6 @@ fetch:
|
|||
"$$(cargo run --manifest-path ../installer/Cargo.toml -- --list-packages -c ../initfs.toml)" \
|
||||
"$$(cargo run --manifest-path ../installer/Cargo.toml -- --list-packages -c ../filesystem.toml)"
|
||||
|
||||
ci:
|
||||
cd cookbook && ./fetch.sh \
|
||||
"$$(cargo run --manifest-path ../installer/Cargo.toml -- --list-packages -c ../ci.toml)"
|
||||
cd cookbook && ./repo.sh \
|
||||
"$$(cargo run --manifest-path ../installer/Cargo.toml -- --list-packages -c ../ci.toml)"
|
||||
|
||||
# Emulation recipes
|
||||
include mk/qemu.mk
|
||||
include mk/bochs.mk
|
||||
|
@ -61,14 +55,23 @@ include mk/filesystem.mk
|
|||
# Disk images
|
||||
include mk/disk.mk
|
||||
|
||||
# Travis target
|
||||
travis: FORCE
|
||||
make INSTALLER_FLAGS= build/harddrive.bin.gz build/livedisk.iso
|
||||
rm -rf build/travis
|
||||
mkdir build/travis
|
||||
mv build/harddrive.bin.gz build/travis/redox_$(TRAVIS_TAG).bin.gz
|
||||
mv build/livedisk.iso build/travis/redox_$(TRAVIS_TAG).iso
|
||||
cd build/travis && sha256sum -b redox_$(TRAVIS_TAG).bin.gz redox_$(TRAVIS_TAG).iso > SHA256SUM
|
||||
# CI image target
|
||||
ci-img: FORCE
|
||||
make INSTALLER_FLAGS= build/harddrive.bin.gz build/harddrive-efi.bin.gz build/livedisk.iso build/livedisk-efi.iso
|
||||
rm -rf build/img
|
||||
mkdir build/img
|
||||
mv build/harddrive.bin.gz build/img/redox_$(IMG_TAG)_harddrive.bin.gz
|
||||
mv build/livedisk.iso build/img/redox_$(IMG_TAG)_livedisk.iso
|
||||
mv build/harddrive-efi.bin.gz build/img/redox_$(IMG_TAG)_harddrive-efi.bin.gz
|
||||
mv build/livedisk-efi.iso build/img/redox_$(IMG_TAG)_livedisk-efi.iso
|
||||
cd build/img && sha256sum -b * > SHA256SUM
|
||||
|
||||
# CI packaging target
|
||||
ci-pkg: FORCE
|
||||
cd cookbook && ./fetch.sh \
|
||||
"$$(cargo run --manifest-path ../installer/Cargo.toml -- --list-packages -c ../ci.toml)"
|
||||
cd cookbook && ./repo.sh \
|
||||
"$$(cargo run --manifest-path ../installer/Cargo.toml -- --list-packages -c ../ci.toml)"
|
||||
|
||||
# An empty target
|
||||
FORCE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue