diff --git a/.bazelrc b/.bazelrc index cf6770c..cba4a5e 100644 --- a/.bazelrc +++ b/.bazelrc @@ -10,5 +10,6 @@ build --extra_toolchains @zig_sdk//:linux_amd64_gnu.2.19_toolchain build --extra_toolchains @zig_sdk//:linux_arm64_gnu.2.28_toolchain build --extra_toolchains @zig_sdk//:darwin_amd64_toolchain build --extra_toolchains @zig_sdk//:darwin_arm64_toolchain -#build --incompatible_use_cc_configure_from_rules_cc -#build --incompatible_use_platforms_repo_for_constraints + +test:qemu-aarch64 --test_env=QEMU_LD_PREFIX=/usr/aarch64-linux-gnu/ +test:qemu-aarch64 --run_under=qemu-aarch64-static diff --git a/.build.yml b/.build.yml index 4132c4c..0c6f1b5 100644 --- a/.build.yml +++ b/.build.yml @@ -16,8 +16,6 @@ triggers: tasks: - setup: | sudo apt-get purge gcc -y && sudo apt-get autoremove -y - sudo mkdir -p /etc/qemu-binfmt - sudo ln -sf /usr/aarch64-linux-gnu /etc/qemu-binfmt/aarch64 - test_list_toolchains_platforms: | cd bazel-zig-cc; . .envrc echo "Available toolchains:" diff --git a/ci/test b/ci/test index c192d9e..e9a8e9a 100755 --- a/ci/test +++ b/ci/test @@ -11,10 +11,10 @@ _run() { "$@" } -while read -r action platform toolchain run_under; do +while read -r action platform toolchain config; do args=("$@") - if [[ $run_under != : ]]; then - args+=(--run_under="$run_under") + if [[ $config != : ]]; then + args+=(--config="$config") fi args+=(\ @@ -28,7 +28,7 @@ while read -r action platform toolchain run_under; do done <