Install binaries
This commit is contained in:
parent
aa76d7e081
commit
f635684ebc
@ -19,7 +19,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest ]
|
os: [ ubuntu-latest ]
|
||||||
BIRTH_CMAKE_BUILD_TYPE: [ Debug, RelWithDebInfo, Release, MinSizeRel ]
|
BIRTH_CMAKE_BUILD_TYPE: [ Debug, Release ]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -31,6 +31,24 @@ jobs:
|
|||||||
CLANG_PATH: clang-19
|
CLANG_PATH: clang-19
|
||||||
CLANGXX_PATH: clang++-19
|
CLANGXX_PATH: clang++-19
|
||||||
run: |
|
run: |
|
||||||
|
set -eu
|
||||||
./generate.sh
|
./generate.sh
|
||||||
./build.sh
|
./build.sh
|
||||||
./build/bb test
|
./build/bb test
|
||||||
|
mkdir -p $HOME/bloat-buster-artifacts/$(git rev-parse --abbrev-ref HEAD)/$(git rev-parse HEAD)/$CMAKE_BUILD_TYPE
|
||||||
|
mv ./self-hosted-bb-cache $HOME/bloat-buster-artifacts/$(git rev-parse --abbrev-ref HEAD)/$(git rev-parse HEAD)/$CMAKE_BUILD_TYPE/cache
|
||||||
|
verifier:
|
||||||
|
needs: ci
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ ubuntu-latest ]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Verify
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
BB_CI: 1
|
||||||
|
run: |
|
||||||
|
./verifier.sh
|
||||||
|
@ -624,10 +624,8 @@ void entry_point(Slice<char* const> arguments, Slice<char* const> envp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (BuildMode compiler_build_mode = BuildMode::debug_none; compiler_build_mode < BuildMode::count; compiler_build_mode = (BuildMode)((backing_type(BuildMode))compiler_build_mode + 1))
|
BuildMode compiler_build_mode = BuildMode::debug_none;
|
||||||
{
|
bool compiler_has_debug_info = true;
|
||||||
for (bool compiler_has_debug_info : has_debug_info_array)
|
|
||||||
{
|
|
||||||
auto compiler = compile_file(arena, {
|
auto compiler = compile_file(arena, {
|
||||||
.relative_file_path = string_literal("src/compiler.bbb"),
|
.relative_file_path = string_literal("src/compiler.bbb"),
|
||||||
.build_mode = compiler_build_mode,
|
.build_mode = compiler_build_mode,
|
||||||
@ -670,8 +668,6 @@ void entry_point(Slice<char* const> arguments, Slice<char* const> envp)
|
|||||||
print(compiler_has_debug_info ? string_literal(" with debug info\n") : string_literal(" with no debug info\n"));
|
print(compiler_has_debug_info ? string_literal(" with debug info\n") : string_literal(" with no debug info\n"));
|
||||||
bb_fail();
|
bb_fail();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
} break;
|
} break;
|
||||||
case Command::count:
|
case Command::count:
|
||||||
{
|
{
|
||||||
|
20
verifier.sh
Executable file
20
verifier.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
BB_BUILD_TYPES=(debug_none debug soft_optimize optimize_for_speed optimize_for_size aggressively_optimize_for_speed aggressively_optimize_for_size)
|
||||||
|
HAS_DEBUG_INFOS=(di no_di)
|
||||||
|
BASE_PATH=$HOME/bloat-buster-artifacts/$(git rev-parse --abbrev-ref HEAD)/$(git rev-parse HEAD)
|
||||||
|
|
||||||
|
for BB_BUILD_TYPE in "${BB_BUILD_TYPES[@]}"; do
|
||||||
|
for HAS_DEBUG_INFO in "${HAS_DEBUG_INFOS[@]}"; do
|
||||||
|
DEBUG_COMPILER_PATH=$BASE_PATH/Debug/cache/debug_none_di/compiler/${BB_BUILD_TYPE}_${HAS_DEBUG_INFO}/compiler
|
||||||
|
RELEASE_COMPILER_PATH=$BASE_PATH/Release/cache/debug_none_di/compiler/${BB_BUILD_TYPE}_${HAS_DEBUG_INFO}/compiler
|
||||||
|
DEBUG_HASH=$(sha256sum $DEBUG_COMPILER_PATH)
|
||||||
|
RELEASE_HASH=$(sha256sum $RELEASE_COMPILER_PATH)
|
||||||
|
if [[ "$DEBUG_HASH" != "$RELEASE_HASH" ]]; then
|
||||||
|
echo $DEBUG_HASH
|
||||||
|
echo $RELEASE_HASH
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user