mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
44 lines
962 B
YAML
44 lines
962 B
YAML
name: Build Clio
|
|
on:
|
|
push:
|
|
branches: [master, develop]
|
|
pull_request:
|
|
branches: [master, develop]
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Get source
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run clang-format
|
|
uses: XRPLF/clio-build/lint@main
|
|
|
|
build_clio:
|
|
name: Build
|
|
runs-on: ubuntu-20.04
|
|
needs: lint
|
|
steps:
|
|
- name: Get clio repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: clio_src
|
|
|
|
- name: Get gha repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: XRPLF/clio-build
|
|
ref: main
|
|
path: gha # must be the same as defined in XRPLF/clio-build
|
|
|
|
- name: Build
|
|
uses: XRPLF/clio-build/build@main
|
|
|
|
# - name: Artifact clio_tests
|
|
# uses: actions/upload-artifact@v2
|
|
# with:
|
|
# name: clio_output
|
|
# path: clio_src/build/clio_tests
|