Add build check to Github Actions, and make getrealdeps.rb failure trigger crew error (#9319)

* Add build check to Github Actions, and make getrealdeps.rb failure trigger crew abort

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* bump version

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2024-02-13 02:23:43 -05:00
committed by GitHub
parent 05c58e76c3
commit 4921e4656e
3 changed files with 7 additions and 3 deletions

View File

@@ -21,4 +21,8 @@ jobs:
yes | crew install vim && \
yes | crew remove vim && \
cd ../tests && \
./prop_test"
./prop_test && \
cd ~ && \
git clone --depth=1 https://github.com/chromebrew/chromebrew.git build_test && \
cd build_test && \
yes | crew build -f packages/hello_world_chromebrew.rb"

View File

@@ -1203,7 +1203,7 @@ def prepare_package(destdir)
abort 'Exiting due to above errors.'.lightred if errors
# Make sure the package file has runtime dependencies added properly.
system "#{CREW_LIB_PATH}/tools/getrealdeps.rb --use-crew-dest-dir #{@pkg.name}" unless @pkg.no_compile_needed?
system "#{CREW_LIB_PATH}/tools/getrealdeps.rb --use-crew-dest-dir #{@pkg.name}", exception: true unless @pkg.no_compile_needed?
# create directory list
# Remove CREW_PREFIX and HOME from the generated directorylist.
crew_prefix_escaped = CREW_PREFIX.gsub('/', '\/')

View File

@@ -1,7 +1,7 @@
# lib/const.rb
# Defines common constants used in different parts of crew
CREW_VERSION = '1.43.2'
CREW_VERSION = '1.43.3'
# kernel architecture
KERN_ARCH = `uname -m`.chomp