mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Switch to self-hosted runners for macOS (#4511)
This commit is contained in:
35
.github/workflows/macos.yml
vendored
35
.github/workflows/macos.yml
vendored
@@ -7,38 +7,22 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform:
|
||||||
- macos-12
|
- macos
|
||||||
generator:
|
generator:
|
||||||
- Ninja
|
- Ninja
|
||||||
configuration:
|
configuration:
|
||||||
- Release
|
- Release
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: [self-hosted, macOS]
|
||||||
env:
|
env:
|
||||||
# The `build` action requires these variables.
|
# The `build` action requires these variables.
|
||||||
build_dir: .build
|
build_dir: .build
|
||||||
NUM_PROCESSORS: 2
|
NUM_PROCESSORS: 12
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: install Ninja
|
- name: install Ninja
|
||||||
if: matrix.generator == 'Ninja'
|
if: matrix.generator == 'Ninja'
|
||||||
run: brew install ninja
|
run: brew install ninja
|
||||||
- name: choose Python
|
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: 3.9
|
|
||||||
- name: learn Python cache directory
|
|
||||||
id: pip-cache
|
|
||||||
run: |
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
|
||||||
- name: restore Python cache directory
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-${{ hashFiles('.github/workflows/nix.yml') }}
|
|
||||||
- name: install Conan
|
|
||||||
run: pip install wheel 'conan<2'
|
|
||||||
- name: check environment
|
- name: check environment
|
||||||
run: |
|
run: |
|
||||||
echo ${PATH} | tr ':' '\n'
|
echo ${PATH} | tr ':' '\n'
|
||||||
@@ -46,19 +30,6 @@ jobs:
|
|||||||
conan --version
|
conan --version
|
||||||
cmake --version
|
cmake --version
|
||||||
env
|
env
|
||||||
- name: configure Conan
|
|
||||||
run: |
|
|
||||||
conan profile new default --detect
|
|
||||||
conan profile update settings.compiler.cppstd=20 default
|
|
||||||
- name: learn Conan cache directory
|
|
||||||
id: conan-cache
|
|
||||||
run: |
|
|
||||||
echo "dir=$(conan config get storage.path)" >> $GITHUB_OUTPUT
|
|
||||||
- name: restore Conan cache directory
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ steps.conan-cache.outputs.dir }}
|
|
||||||
key: ${{ hashFiles('~/.conan/profiles/default', 'conanfile.py', 'external/rocksdb/*', '.github/workflows/nix.yml') }}
|
|
||||||
- name: build
|
- name: build
|
||||||
uses: ./.github/actions/build
|
uses: ./.github/actions/build
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user