From a455c02d0591fa1ee7808bbd5096392b53bb62d4 Mon Sep 17 00:00:00 2001 From: Dominik K Date: Mon, 18 Dec 2023 16:59:17 +0100 Subject: [PATCH] reuse workflow from `everest-core` Signed-off-by: Dominik K --- .github/workflows/build_and_test.yaml | 50 ++++----------------------- 1 file changed, 6 insertions(+), 44 deletions(-) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index 75350c896..6972a7794 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -1,46 +1,8 @@ name: Build and test libocpp -on: - pull_request: {} - workflow_dispatch: - inputs: - runner: - description: Which runner to use - type: choice - default: 'ubuntu-22.04' - required: true - options: - - 'ubuntu-22.04' - - 'large-ubuntu-22.04-xxl' -jobs: - lint: - name: Install and test - strategy: - matrix: - os: [ubuntu-22.04] - runs-on: ${{ matrix.os }} - steps: - - name: Checkout libocpp - uses: actions/checkout@v3 - with: - path: source - - name: Run clang-format - uses: everest/everest-ci/github-actions/run-clang-format@v1.0.0 - with: - source-dir: source - extensions: hpp,cpp - exclude: cache - - name: Setup run scripts - run: | - mkdir scripts - rsync -a source/.ci/build-kit/ scripts - - name: Pull docker container - run: | - docker pull --platform=linux/x86_64 --quiet ghcr.io/everest/build-kit-alpine:latest - docker image tag ghcr.io/everest/build-kit-alpine:latest build-kit - - name: Run install with tests - run: | - docker run \ - --volume "$(pwd):/ext" \ - --name test-container \ - build-kit run-script install_and_test +on: + push: + +jobs: + build_and_test: + uses: EVerest/everest-core/.github/workflows/build_and_test.yaml@CI/reusable-workflow