-
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 #545 from facebookresearch/release/v0.2.2
Release v0.2.2
- Loading branch information
Showing
238 changed files
with
10,700 additions
and
1,190 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 |
---|---|---|
@@ -1 +1 @@ | ||
4.0.0 | ||
4.2.2 |
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
27 changes: 27 additions & 0 deletions
27
.github/actions/install-cmake-build-dependencies/action.yaml
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,27 @@ | ||
--- | ||
name: Install CMake build dependencies | ||
description: Install CMake build dependencies | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: ./.github/actions/install-build-dependencies | ||
|
||
- name: Install CMake dependencies | ||
run: | | ||
if [ "$(uname)" = "Darwin" ]; then | ||
echo "CMake build for Darwin is unimplemented." | ||
exit 1 | ||
else | ||
# Compiler | ||
sudo apt-get install clang++-9 lld-9 tar bzip2 ninja-build | ||
sudo apt-get install tar bzip2 ninja-build | ||
# CMake | ||
wget https://github.com/Kitware/CMake/releases/download/v3.20.5/cmake-3.20.5-linux-x86_64.sh -O /tmp/cmake.sh | ||
sudo bash /tmp/cmake.sh --prefix=/usr/local --exclude-subdir --skip-license | ||
rm /tmp/cmake.sh | ||
# protobuf | ||
sudo apt-get install autoconf libtool make | ||
# Testing | ||
sudo apt-get install coreutils | ||
fi | ||
shell: bash |
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
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,72 @@ | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
cmake_minimum_required(VERSION 3.20) | ||
|
||
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR) | ||
message(FATAL_ERROR "In-source builds are unsupported. Please, build out of the source tree.") | ||
endif() | ||
|
||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | ||
set(DARWIN TRUE) | ||
endif() | ||
|
||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
project(compiler_gym ASM C CXX) | ||
|
||
set(CMAKE_C_STANDARD 11 CACHE STRING "C standard to be used.") | ||
set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to be used.") | ||
|
||
set_property(GLOBAL PROPERTY USE_FOLDERS ON) | ||
|
||
list(APPEND CMAKE_MODULE_PATH | ||
${CMAKE_CURRENT_LIST_DIR}/build_tools/cmake/ | ||
) | ||
|
||
set(COMPILER_GYM_BUILD_TESTS OFF CACHE BOOL "Enable Compiler Gym tests.") | ||
set(COMPILER_GYM_BUILD_EXAMPLES OFF CACHE BOOL "Enable Comiler Gym examples.") | ||
|
||
include(cg_macros) | ||
include(cg_copts) | ||
include(cg_genrule) | ||
include(cg_cc_binary) | ||
include(cg_cc_library) | ||
include(cg_cc_test) | ||
include(cg_py_binary) | ||
include(cg_py_library) | ||
include(cg_py_test) | ||
include(cg_python) | ||
include(cg_add_all_subdirs) | ||
include(cg_filegroup) | ||
include(grpc) | ||
include(protobuf) | ||
|
||
set(COMPILER_GYM_PYTHONPATH "$ENV{PYTHONPATH}" CACHE STRING "PYTHONPATH environment variable during build step.") | ||
if (COMPILER_GYM_PYTHONPATH) | ||
string(PREPEND COMPILER_GYM_PYTHONPATH ":") | ||
endif() | ||
string(PREPEND COMPILER_GYM_PYTHONPATH "${CMAKE_BINARY_DIR}") | ||
include(set_command_pythonpath) | ||
|
||
set(DEFAULT_CMAKE_BUILD_TYPE "Release") | ||
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) | ||
message(STATUS "No build type selected, default to ${DEFAULT_CMAKE_BUILD_TYPE}") | ||
set(CMAKE_BUILD_TYPE "${DEFAULT_CMAKE_BUILD_TYPE}" CACHE STRING "Build type (default ${DEFAULT_CMAKE_BUILD_TYPE})" FORCE) | ||
endif() | ||
|
||
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) | ||
|
||
find_package(Python3 REQUIRED COMPONENTS Interpreter) | ||
|
||
include(external/external.cmake) | ||
add_subdirectory(compiler_gym) | ||
if(COMPILER_GYM_BUILD_TESTS) | ||
enable_testing() | ||
add_subdirectory(tests) | ||
endif() | ||
if(COMPILER_GYM_BUILD_EXAMPLES) | ||
add_subdirectory(examples) | ||
endif() |
Oops, something went wrong.