CI
Some checks failed
CI / ci (Debug, ubuntu-latest) (pull_request) Failing after 3s
CI / ci (MinSizeRel, ubuntu-latest) (pull_request) Failing after 3s
CI / ci (RelWithDebInfo, ubuntu-latest) (pull_request) Failing after 3s
CI / ci (Release, ubuntu-latest) (pull_request) Failing after 2s

This commit is contained in:
David Gonzalez Martin 2025-05-22 19:53:07 -06:00
parent 4c6cfd2399
commit 7bb0aef829
2 changed files with 16 additions and 5 deletions

View File

@ -20,11 +20,16 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
BIRTH_ZIG_BUILD_TYPE: [ Debug, ReleaseSafe, ReleaseFast, ReleaseSmall ]
BIRTH_CMAKE_BUILD_TYPE: [ Debug, RelWithDebInfo, Release, MinSizeRel ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build and test (Packaged LLVM)
shell: bash
env:
BB_CI: 1
CMAKE_BUILD_TYPE: ${{matrix.BIRTH_CMAKE_BUILD_TYPE}}
run: |
~/zig-linux-x86_64-0.14.0/zig build test -Doptimize=${{matrix.BIRTH_ZIG_BUILD_TYPE}} -Dsystem_llvm=false
ldd zig-out/bin/bloat-buster
./generate.sh
./build.sh
./build/bb test

View File

@ -1,7 +1,13 @@
#!/usr/bin/env bash
set -eu
CMAKE_BUILD_TYPE=Debug
LLVM_CMAKE_BUILD_TYPE=Release
if [[ -z "${BB_CI:-}" ]]; then
CMAKE_BUILD_TYPE=Debug
LLVM_CMAKE_BUILD_TYPE=Release
else
LLVM_CMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE
fi
BUILD_DIR=build
BIRTH_NATIVE_OS_STRING=$OSTYPE