-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #288 from ChrisCummins/release-v0.1.9
Release v0.1.9
- Loading branch information
Showing
205 changed files
with
8,778 additions
and
6,269 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: Install the Linux dependencies | ||
description: Install build dependencies | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Install dependencies (linux) | ||
run: | | ||
if [ "$(uname)" != "Darwin" ]; then | ||
curl -L "https://github.com/bazelbuild/bazelisk/releases/download/v1.6.1/bazelisk-linux-amd64" > bazel | ||
chmod +x bazel | ||
sudo mv bazel /usr/local/bin/bazel | ||
sudo apt-get install clang-9 patchelf | ||
python -m pip install -r compiler_gym/requirements.txt -r examples/requirements.txt -r tests/requirements.txt | ||
fi | ||
shell: bash | ||
|
||
- name: Install dependencies (macos) | ||
run: | | ||
if [ "$(uname)" = "Darwin" ]; then | ||
brew install bazelisk zlib | ||
python -m pip install -r compiler_gym/requirements.txt -r examples/requirements.txt -r tests/requirements.txt | ||
fi | ||
shell: bash | ||
env: | ||
LDFLAGS: -L/usr/local/opt/zlib/lib | ||
CPPFLAGS: -I/usr/local/opt/zlib/include | ||
PKG_CONFIG_PATH: /usr/local/opt/zlib/lib/pkgconfig |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
name: Test Coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- development | ||
- stable | ||
pull_request: | ||
|
||
jobs: | ||
pytest-cov: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install build dependencies | ||
uses: ./.github/actions/install-build-dependencies | ||
|
||
- name: Install | ||
run: make install | ||
env: | ||
CC: clang | ||
CXX: clang++ | ||
BAZEL_OPTS: --batch | ||
BAZEL_BUILD_OPTS: --config=ci | ||
|
||
- name: Test | ||
# Note the `|| true` as we don't care about failing tests in this | ||
# job. | ||
run: make install-test-cov || true | ||
env: | ||
CC: clang | ||
CXX: clang++ | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: ./coverage.xml | ||
if: ${{ always() }} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
name: LLVM Sanitizers | ||
|
||
on: | ||
push: | ||
branches: | ||
- development | ||
- stable | ||
pull_request: | ||
|
||
jobs: | ||
llvm-service-asan: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install build dependencies | ||
uses: ./.github/actions/install-build-dependencies | ||
|
||
- name: Build pip package | ||
run: make bazel-build | ||
env: | ||
CC: clang | ||
CXX: clang++ | ||
BAZEL_OPTS: --batch | ||
BAZEL_BUILD_OPTS: --config=ci | ||
|
||
- name: Build address sanitized LLVM compiler service | ||
run: make bazel-build BAZEL_BUILD_OPTS=--config=asan BUILD_TARGET=//compiler_gym/envs/llvm/service:compiler_gym-llvm-service | ||
env: | ||
CC: clang | ||
CXX: clang++ | ||
BAZEL_OPTS: --batch | ||
BAZEL_BUILD_OPTS: --config=ci | ||
|
||
- name: Install pip package | ||
run: make pip-install | ||
|
||
- name: Test | ||
run: make install-test TEST_TARGET=tests/llvm | ||
env: | ||
ASAN_OPTIONS: detect_leaks=1 | ||
CC: clang | ||
CXX: clang++ |
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
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
Oops, something went wrong.