mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
70 lines
1.5 KiB
YAML
70 lines
1.5 KiB
YAML
name: Build Clio
|
|
on:
|
|
push:
|
|
branches: [master, develop, develop-next]
|
|
pull_request:
|
|
branches: [master, develop, develop-next]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Get source
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run clang-format
|
|
uses: XRPLF/clio-gha/lint@main
|
|
|
|
build_clio:
|
|
name: Build
|
|
runs-on: [self-hosted, Linux]
|
|
needs: lint
|
|
steps:
|
|
|
|
- name: Clone Clio repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: clio_src
|
|
|
|
- name: Clone Clio CI repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: clio_ci
|
|
repository: 'XRPLF/clio-ci'
|
|
|
|
- name: Clone GitHub actions repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: XRPLF/clio-gha
|
|
path: gha # must be the same as defined in XRPLF/clio-gha
|
|
|
|
- name: Build
|
|
uses: XRPLF/clio-gha/build@main
|
|
|
|
- name: Artifact clio_tests
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: clio_tests
|
|
path: clio_tests
|
|
|
|
- name: Artifact Debian package
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: deb_package-${{ github.sha }}
|
|
path: clio_ci/build/*.deb
|
|
|
|
test_clio:
|
|
name: Test Clio
|
|
runs-on: [self-hosted, Linux]
|
|
needs: build_clio
|
|
steps:
|
|
- name: Get clio_tests artifact
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: clio_tests
|
|
|
|
- name: Run tests
|
|
uses: XRPLF/clio-gha/test@main
|