Add nostart-stop-gc #162
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ubuntu-bazel | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Swift dependencies | |
run: | | |
sudo apt-get install clang libicu-dev | |
wget https://download.swift.org/swift-5.10-release/ubuntu2204/swift-5.10-RELEASE/swift-5.10-RELEASE-ubuntu22.04.tar.gz | |
tar xzf swift-5.10-RELEASE-ubuntu22.04.tar.gz | |
echo "$(pwd)/swift-5.10-RELEASE-ubuntu22.04/usr/bin" >> $GITHUB_PATH | |
- name: Install bazelisk | |
run: | | |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.20.0/bazelisk-linux-amd64" | |
mkdir -p "${GITHUB_WORKSPACE}/bin/" | |
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel" | |
chmod +x "${GITHUB_WORKSPACE}/bin/bazel" | |
- name: Setup clang | |
run: | | |
sudo apt -y install clang llvm | |
./bazel/setup_clang.sh | |
echo 'build --linkopt="-z nostart-stop-gc"' >> "${GITHUB_WORKSPACE}/.bazelrc.local" | |
echo 'build --host_linkopt="-z nostart-stop-gc"' >> "${GITHUB_WORKSPACE}/.bazelrc.local" | |
- name: Run tests | |
run: | | |
"${GITHUB_WORKSPACE}/bin/bazel" test --test_output=errors //src/tests:Tests |