Skip to content

Commit

Permalink
#291: CI: update cache action and remove BUILD_ROOT setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Mar 21, 2023
1 parent 19c54af commit cabc97c
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 103 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/dockerimage-clang-10-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ jobs:
CACHE: ~/.local/cache/

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
- name: Prepare caching timestamp
id: cache_ts
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: ubuntu-clang-10-cache
with:
path: ${{ env.BUILD_ROOT }}/ccache
path: ~/.cache/ccache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.cache_ts.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
Expand All @@ -75,8 +71,8 @@ jobs:
docker-compose push ubuntu-cpp
- name: Zip up CMake output
run: |
zip -j LastTest.log.gz ${{ env.BUILD_ROOT }}/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ${{ env.BUILD_ROOT }}/checkpoint/cmake-output.log
zip -j LastTest.log.gz ~/.cache/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ~/.cache/checkpoint/cmake-output.log
- uses: actions/upload-artifact@v1
with:
name: CMake test output
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/dockerimage-clang-11-ubuntu-mpich-vt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,17 @@ jobs:
CACHE: ~/.local/cache/

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
- name: Prepare caching timestamp
id: cache_ts
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: ubuntu-clang-11-cache
with:
path: ${{ env.BUILD_ROOT }}/ccache
path: ~/.cache/ccache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.cache_ts.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/dockerimage-clang-11-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ jobs:
CACHE: ~/.local/cache/

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
- name: Prepare caching timestamp
id: cache_ts
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: ubuntu-clang-11-cache
with:
path: ${{ env.BUILD_ROOT }}/ccache
path: ~/.cache/ccache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.cache_ts.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
Expand All @@ -75,8 +71,8 @@ jobs:
docker-compose push ubuntu-cpp
- name: Zip up CMake output
run: |
zip -j LastTest.log.gz ${{ env.BUILD_ROOT }}/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ${{ env.BUILD_ROOT }}/checkpoint/cmake-output.log
zip -j LastTest.log.gz ~/.cache/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ~/.cache/checkpoint/cmake-output.log
- uses: actions/upload-artifact@v1
with:
name: CMake test output
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/dockerimage-clang-12-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ jobs:
CACHE: ~/.local/cache/

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
- name: Prepare caching timestamp
id: cache_ts
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: ubuntu-clang-12-cache
with:
path: ${{ env.BUILD_ROOT }}/ccache
path: ~/.cache/ccache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.cache_ts.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
Expand All @@ -75,8 +71,8 @@ jobs:
docker-compose push ubuntu-cpp
- name: Zip up CMake output
run: |
zip -j LastTest.log.gz ${{ env.BUILD_ROOT }}/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ${{ env.BUILD_ROOT }}/checkpoint/cmake-output.log
zip -j LastTest.log.gz ~/.cache/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ~/.cache/checkpoint/cmake-output.log
- uses: actions/upload-artifact@v1
with:
name: CMake test output
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/dockerimage-clang-13-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ jobs:
CACHE: ~/.local/cache/

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
- name: Prepare caching timestamp
id: cache_ts
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: ubuntu-clang-13-cache
with:
path: ${{ env.BUILD_ROOT }}/ccache
path: ~/.cache/ccache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.cache_ts.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
Expand All @@ -75,8 +71,8 @@ jobs:
docker-compose push ubuntu-cpp
- name: Zip up CMake output
run: |
zip -j LastTest.log.gz ${{ env.BUILD_ROOT }}/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ${{ env.BUILD_ROOT }}/checkpoint/cmake-output.log
zip -j LastTest.log.gz ~/.cache/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ~/.cache/checkpoint/cmake-output.log
- uses: actions/upload-artifact@v1
with:
name: CMake test output
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/dockerimage-clang-14-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ jobs:
CACHE: ~/.local/cache/

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
- name: Prepare caching timestamp
id: cache_ts
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: ubuntu-clang-14-cache
with:
path: ${{ env.BUILD_ROOT }}/ccache
path: ~/.cache/ccache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.cache_ts.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
Expand All @@ -75,8 +71,8 @@ jobs:
docker-compose push ubuntu-cpp
- name: Zip up CMake output
run: |
zip -j LastTest.log.gz ${{ env.BUILD_ROOT }}/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ${{ env.BUILD_ROOT }}/checkpoint/cmake-output.log
zip -j LastTest.log.gz ~/.cache/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ~/.cache/checkpoint/cmake-output.log
- uses: actions/upload-artifact@v1
with:
name: CMake test output
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/dockerimage-clang-8-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ jobs:
CACHE: ~/.local/cache/

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
- name: Prepare caching timestamp
id: cache_ts
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: ubuntu-clang-8-cache
with:
path: ${{ env.BUILD_ROOT }}/ccache
path: ~/.cache/ccache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.cache_ts.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
Expand All @@ -75,8 +71,8 @@ jobs:
docker-compose push ubuntu-cpp
- name: Zip up CMake output
run: |
zip -j LastTest.log.gz ${{ env.BUILD_ROOT }}/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ${{ env.BUILD_ROOT }}/checkpoint/cmake-output.log
zip -j LastTest.log.gz ~/.cache/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ~/.cache/checkpoint/cmake-output.log
- uses: actions/upload-artifact@v1
with:
name: CMake test output
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/dockerimage-clang-9-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ jobs:
CACHE: ~/.local/cache/

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
- name: Prepare caching timestamp
id: cache_ts
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: ubuntu-clang-9-cache
with:
path: ${{ env.BUILD_ROOT }}/ccache
path: ~/.cache/ccache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.cache_ts.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
Expand All @@ -75,8 +71,8 @@ jobs:
docker-compose push ubuntu-cpp
- name: Zip up CMake output
run: |
zip -j LastTest.log.gz ${{ env.BUILD_ROOT }}/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ${{ env.BUILD_ROOT }}/checkpoint/cmake-output.log
zip -j LastTest.log.gz ~/.cache/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ~/.cache/checkpoint/cmake-output.log
- uses: actions/upload-artifact@v1
with:
name: CMake test output
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/dockerimage-gcc-10-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ jobs:
CACHE: ~/.local/cache/

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
- name: Prepare caching timestamp
id: cache_ts
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: ubuntu-gcc-10-cache
with:
path: ${{ env.BUILD_ROOT }}/ccache
path: ~/.cache/ccache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.cache_ts.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
Expand All @@ -75,8 +71,8 @@ jobs:
docker-compose push ubuntu-cpp
- name: Zip up CMake output
run: |
zip -j LastTest.log.gz ${{ env.BUILD_ROOT }}/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ${{ env.BUILD_ROOT }}/checkpoint/cmake-output.log
zip -j LastTest.log.gz ~/.cache/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ~/.cache/checkpoint/cmake-output.log
- uses: actions/upload-artifact@v1
with:
name: CMake test output
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/dockerimage-gcc-8-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ jobs:
CACHE: ~/.local/cache/

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
- name: Prepare caching timestamp
id: cache_ts
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: ubuntu-gcc-8-cache
with:
path: ${{ env.BUILD_ROOT }}/ccache
path: ~/.cache/ccache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.cache_ts.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
Expand All @@ -75,8 +71,8 @@ jobs:
docker-compose push ubuntu-cpp
- name: Zip up CMake output
run: |
zip -j LastTest.log.gz ${{ env.BUILD_ROOT }}/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ${{ env.BUILD_ROOT }}/checkpoint/cmake-output.log
zip -j LastTest.log.gz ~/.cache/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ~/.cache/checkpoint/cmake-output.log
- uses: actions/upload-artifact@v1
with:
name: CMake test output
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/dockerimage-gcc-9-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,17 @@ jobs:
CACHE: ~/.local/cache/

steps:
- name: Setup Build Root
uses: allenevans/[email protected]
with:
BUILD_ROOT: "~/.local/cache/${{ env.ARCH }}-ubuntu-${{ env.UBUNTU }}-${{ env.COMPILER }}-cache/"
- name: Prepare caching timestamp
id: cache_ts
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: ubuntu-gcc-9-cache
with:
path: ${{ env.BUILD_ROOT }}/ccache
path: ~/.cache/ccache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.cache_ts.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
Expand All @@ -75,8 +71,8 @@ jobs:
docker-compose push ubuntu-cpp
- name: Zip up CMake output
run: |
zip -j LastTest.log.gz ${{ env.BUILD_ROOT }}/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ${{ env.BUILD_ROOT }}/checkpoint/cmake-output.log
zip -j LastTest.log.gz ~/.cache/checkpoint/Testing/Temporary/LastTest.log
zip -j cmake-output.log.gz ~/.cache/checkpoint/cmake-output.log
- uses: actions/upload-artifact@v1
with:
name: CMake test output
Expand Down
Loading

0 comments on commit cabc97c

Please sign in to comment.