Skip to content

Commit

Permalink
Distributed minimal source archives -- take 2 (#135)
Browse files Browse the repository at this point in the history
* Add export ignores to produce small tarballs
* Do not add benchmarks subdirectory
* Include benchmarks directory if present
* Use checkout@v1 action

The v2 action seems to ignore files marked with `export-ignore` in the .gitattributes file.

See https://github.community/t/using-container-checkout-doesnt-checkout-hidden-files/18429

* fix the CI apocalypse
* [CMAKE] fix EXISTS test

Co-authored-by: Noah D. Brenowitz <nbren12@gmail.com>
  • Loading branch information
2 people authored and wsmoses committed May 17, 2021
1 parent a462dfe commit 295aeb3
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 9 deletions.
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/LICENSE export-ignore
/Readme.md export-ignore
/clang export-ignore
/clang-tools-extra export-ignore
/compiler-rt export-ignore
/contrib export-ignore
/debuginfo-tests export-ignore
/libcxx export-ignore
/libcxxabi export-ignore
/libunwind export-ignore
/lld export-ignore
/lldb export-ignore
/llvm export-ignore
/openmp export-ignore
/polly export-ignore
/tests export-ignore
/enzyme/benchmarks export-ignore
6 changes: 3 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Benchmarking
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:
build:
Expand All @@ -28,7 +28,7 @@ jobs:
sudo apt-get install -y python-pip autoconf cmake gcc g++ libtool gfortran libblas-dev llvm-${{ matrix.llvm }}-dev clang-${{ matrix.llvm }} libeigen3-dev libboost-dev
sudo pip install lit
sudo touch /usr/lib/llvm-${{ matrix.llvm }}/bin/yaml-bench
- uses: actions/checkout@v2
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: mkdir
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: C/C++ CI
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:
build:
Expand All @@ -29,7 +29,7 @@ jobs:
sudo apt-get install -y autoconf cmake gcc g++ libtool gfortran llvm-${{ matrix.llvm }}-dev libomp-${{ matrix.llvm }}-dev clang-${{ matrix.llvm }} libeigen3-dev libboost-dev
sudo pip install lit
sudo touch /usr/lib/llvm-${{ matrix.llvm }}/bin/yaml-bench
- uses: actions/checkout@v2
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: mkdir
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/enzyme-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
fi
sudo pip install lit
sudo touch /usr/lib/llvm-${{ matrix.llvm }}/bin/yaml-bench
- uses: actions/checkout@v2
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: mkdir
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: DoozyX/clang-format-lint-action@v0.11
Expand Down
7 changes: 6 additions & 1 deletion enzyme/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,9 @@ include_directories("${CMAKE_CURRENT_BINARY_DIR}/include")

add_subdirectory(Enzyme)
add_subdirectory(test)
add_subdirectory(benchmarks)

# The benchmarks data are not in git-exported source archives to minimize size.
# Only add the benchmarks if the directory exists.
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/benchmarks")
add_subdirectory(benchmarks)
endif()

0 comments on commit 295aeb3

Please sign in to comment.