mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
The problem was `CONAN_USERNAME` environment variable, which Conan 1.x uses as the default user in package references.
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
name: macos
|
|
on: [push, pull_request]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- macos
|
|
generator:
|
|
- Ninja
|
|
configuration:
|
|
- Release
|
|
runs-on: [self-hosted, macOS]
|
|
env:
|
|
# The `build` action requires these variables.
|
|
build_dir: .build
|
|
NUM_PROCESSORS: 12
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
- name: install Ninja
|
|
if: matrix.generator == 'Ninja'
|
|
run: brew install ninja
|
|
- name: check environment
|
|
run: |
|
|
env | sort
|
|
echo ${PATH} | tr ':' '\n'
|
|
python --version
|
|
conan --version
|
|
cmake --version
|
|
- name: configure Conan
|
|
run : |
|
|
conan profile get env.CXXFLAGS default || true
|
|
conan profile update 'conf.tools.build:cxxflags+=["-DBOOST_ASIO_DISABLE_CONCEPTS"]' default
|
|
- name: build dependencies
|
|
uses: ./.github/actions/dependencies
|
|
env:
|
|
CONAN_URL: http://18.143.149.228:8081/artifactory/api/conan/conan-non-prod
|
|
CONAN_LOGIN_USERNAME_RIPPLE: ${{ secrets.CONAN_USERNAME }}
|
|
CONAN_PASSWORD_RIPPLE: ${{ secrets.CONAN_TOKEN }}
|
|
with:
|
|
configuration: ${{ matrix.configuration }}
|
|
- name: build
|
|
uses: ./.github/actions/build
|
|
with:
|
|
generator: ${{ matrix.generator }}
|
|
configuration: ${{ matrix.configuration }}
|
|
- name: test
|
|
run: |
|
|
${build_dir}/rippled --unittest
|