-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use architecture in save/restore cache keys, move to newer runners, a…
…dd mac arm runner Bump to ubuntu 22.04 and macOS-12 runners Add new macOS 14 M1 runner for arm wheels Signed-off-by: Tim Paine <[email protected]>
- Loading branch information
Showing
6 changed files
with
77 additions
and
48 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 |
---|---|---|
|
@@ -18,10 +18,13 @@ runs: | |
# Setup CCache | ||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ccache-${{ runner.os }}-${{ runner.arch }} | ||
append-timestamp: false # avoid excess caching | ||
|
||
- name: Setup ccache in shell | ||
shell: bash | ||
run: echo 'PATH=/usr/lib/ccache:'"$PATH" >> $GITHUB_ENV | ||
run: echo 'PATH=/usr/lib/ccache:/usr/local/opt/ccache/libexec:'"$PATH" >> $GITHUB_ENV | ||
if: ${{ runner.os != 'Windows' }} | ||
# TODO windows | ||
|
||
|
@@ -31,29 +34,29 @@ runs: | |
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/Library/Caches/Homebrew/boost--* | ||
~/Library/Caches/Homebrew/downloads/*--boost-* | ||
key: brew-${{ hashFiles('CMakeLists.txt') }} | ||
restore-keys: brew- | ||
~/Library/Caches/Homebrew/* | ||
~/Library/Caches/Homebrew/downloads/* | ||
key: brew-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile') }} | ||
restore-keys: brew-${{ runner.os }}-${{ runner.arch }}- | ||
if: ${{ runner.os == 'macOS' }} | ||
|
||
################ | ||
# vcpkg Cache | ||
- name: Setup vcpkg cache in shell | ||
shell: bash | ||
run: | | ||
mkdir -p ~/vcpkg_cache | ||
mkdir -p ~/vcpkg_download_cache | ||
mkdir -p $HOME/vcpkg_cache | ||
mkdir -p $HOME/vcpkg_download_cache | ||
echo "VCPKG_DEFAULT_BINARY_CACHE=$HOME/vcpkg_cache" >> $GITHUB_ENV | ||
echo "VCPKG_DOWNLOADS=$HOME/vcpkg_download_cache" >> $GITHUB_ENV | ||
if: ${{ runner.os != 'Windows' }} | ||
|
||
- name: Setup vcpkg cache (Linux) | ||
- name: Setup vcpkg cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/vcpkg_cache | ||
~/vcpkg_download_cache | ||
key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }} | ||
restore-keys: vcpkg-${{ runner.os }} | ||
$HOME/vcpkg_cache | ||
$HOME/vcpkg_download_cache | ||
key: vcpkg-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('vcpkg.json') }} | ||
restore-keys: vcpkg-${{ runner.os }}-${{ runner.arch }}- | ||
if: ${{ runner.os != 'Windows' }} |
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