Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching external dependencies for workflows #401

Open
wants to merge 58 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
aa4be36
Initial simple CI workflow
elshize Apr 30, 2020
2399a53
Run CI workflow for linux only
elshize Apr 30, 2020
dda8d42
Fix workflow
elshize Apr 30, 2020
4573cb4
Fix workflow
elshize Apr 30, 2020
c21b5d9
Add additional OS
elshize Apr 30, 2020
b08584f
Fix yaml format
elshize Apr 30, 2020
e658923
Fix env variables
elshize Apr 30, 2020
2a7a55a
Fix workflow
elshize Apr 30, 2020
3eeafce
Fix workflow
elshize Apr 30, 2020
8f14d4d
Fix workflow
elshize Apr 30, 2020
5339f83
Add format and tidy
elshize Apr 30, 2020
7f82bae
Add format and tidy
elshize Apr 30, 2020
df51a7d
Add format and tidy
elshize Apr 30, 2020
0c6fe2f
Add format and tidy
elshize Apr 30, 2020
200635d
Export tidy env vars
elshize Apr 30, 2020
523d9cd
Clang tidy fixes
elshize Apr 30, 2020
f8760e4
Merge branch 'master' into format-workflow
elshize May 21, 2020
074ddd5
Fix mappable vector destructor
elshize May 22, 2020
3f5f6b3
Add missing constructors to temporary directory
elshize May 22, 2020
5308390
Remove Travis jobs duplicated by actions
elshize May 22, 2020
d87d991
Migrate clang and gcc tests to Actions
elshize May 23, 2020
8ce3b4e
Additional compilers in Actions
elshize May 23, 2020
044d612
Use libc++ with clang-6
elshize May 23, 2020
248eb67
Use libc++-7 with clang-6
elshize May 23, 2020
c5cd85d
Use libstdc++-7 with clang-6
elshize May 23, 2020
041660b
libc++abi
elshize May 23, 2020
8c12faf
Replace clang-6 with clang-7
elshize May 23, 2020
fd2edcd
Clang-6 struggles
elshize May 23, 2020
b4a435d
Clang-6 struggles
elshize May 23, 2020
0cdd99f
Clang-6 struggles
elshize May 23, 2020
e516757
Clang-6 struggles
elshize May 23, 2020
b0a32fd
Merge branch 'master' into format-workflow
elshize Jun 1, 2020
e51ab2b
Merge branch 'master' into format-workflow
elshize Jun 1, 2020
7cb5803
Revert clang-6 test to Travis
elshize Jun 1, 2020
6eb4d5a
Update trecpp
elshize Jun 1, 2020
16ae9f6
Update warcpp
elshize Jun 1, 2020
7cf5fc0
Add external dependencies caching
elshize Jun 2, 2020
b9e96bb
Add external dependencies caching
elshize Jun 2, 2020
2f29149
Increase no. threads
elshize Jun 2, 2020
06f513f
Increase no. threads
elshize Jun 2, 2020
fb96519
Increase no. threads
elshize Jun 2, 2020
a913239
Set 4 threads for make
elshize Jun 2, 2020
a7f598a
Merge branch 'master' into workflow-cache
elshize Jun 2, 2020
a860678
Add libtool dep for workflows
elshize Jun 2, 2020
2b397df
Merge branch 'workflow-cache' of github.com:pisa-engine/pisa into wor…
elshize Jun 2, 2020
5cfd53d
Add gumbo dependencies
elshize Jun 2, 2020
4a2e651
Merge branch 'master' into workflow-cache
elshize Jun 2, 2020
c303b4e
Add missing key
elshize Jun 2, 2020
c4328b3
Revert last changes
elshize Jun 2, 2020
9cab523
Merge branch 'master' into workflow-cache
elshize Jun 2, 2020
decff32
Merge branch 'master' into workflow-cache
elshize Jun 3, 2020
cea071c
Merge branch 'master' into workflow-cache
elshize Jun 5, 2020
e0fd4c0
Merge branch 'master' into workflow-cache
amallia Jun 5, 2020
9785c3b
Update ci.yml
amallia Jun 5, 2020
4eab88c
Update ci.yml
amallia Jun 5, 2020
2dbde45
Update ci.yml
amallia Jun 5, 2020
7039050
Update ci.yml
amallia Jun 5, 2020
377ff99
Merge branch 'master' into workflow-cache
elshize Jun 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ jobs:
if: runner.os == 'Linux'
shell: bash
run: |
# Install compiler

cc="${{ matrix.compiler }}-${{ matrix.version }}"
cc="${cc%-}"
cxx="${cc/clang/clang++}"
Expand All @@ -58,7 +56,7 @@ jobs:
sudo apt-get remove libstdc++-9-dev libgcc-9-dev cpp-9
fi
sudo apt-get update
sudo apt-get install -y libtool m4 autoconf
sudo apt-get install -y libtool m4 autoconf ccache
if [ "${{ matrix.compiler }}" = "gcc" ]; then
sudo apt-get install -y "${cxx}"
else
Expand All @@ -69,7 +67,8 @@ jobs:
- name: Install (macOS)
if: runner.os == 'macOS'
run: |
brew install autoconf automake libtool cmake
brew install autoconf automake libtool cmake ccache
export PATH="/usr/local/opt/ccache/libexec:$PATH";
if [ "${{ matrix.compiler }}" = "gcc" ]; then
echo "::set-env name=CC::gcc-${{ matrix.version }}"
echo "::set-env name=CXX::g++-${{ matrix.version }}"
Expand All @@ -83,7 +82,11 @@ jobs:
- name: Create Build Environment
shell: bash
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Cache ccache files
uses: actions/cache@v1.1.2
with:
path: ~/.ccache
key: ${{ runner.os }}-${{ matrix.CC }}-${{ hashFiles('**/*.c') }}-${{ hashFiles('**/*.cpp') }}
- name: Configure
shell: bash
working-directory: ${{runner.workspace}}/build
Expand All @@ -92,8 +95,9 @@ jobs:
- name: Build
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config Debug -- -j 4

run: |
[ -d "$HOME/.ccache" ] && sudo chown -R "$USER": "$HOME/.ccache"
cmake --build . --config Debug -- -j 4
- name: Test
shell: bash
working-directory: ${{runner.workspace}}/build
Expand Down