From da5e21b648e2f864316ed982b367b77e2843ea45 Mon Sep 17 00:00:00 2001 From: Michael Legleux Date: Tue, 12 Apr 2022 15:30:36 -0700 Subject: [PATCH] Use actions from XRPLF/clio-build repo --- .github/workflows/build.yml | 43 +++++++++++++++++++++ .github/workflows/clang-format.yml | 60 ------------------------------ .github/workflows/clio_ci.yml | 15 -------- 3 files changed, 43 insertions(+), 75 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/clang-format.yml delete mode 100644 .github/workflows/clio_ci.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..d8df6f3c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,43 @@ +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 diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml deleted file mode 100644 index cce27007..00000000 --- a/.github/workflows/clang-format.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: clang-format - -on: [push, pull_request] - -jobs: - check: - runs-on: ubuntu-18.04 - env: - CLANG_VERSION: 11 - steps: - - uses: actions/checkout@v2 - - name: Install clang-format - run: | - sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null <