From deffb40fab543add001d1d9a09ca8f3ae4a6073f Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Sun, 8 Dec 2024 08:18:28 +0100 Subject: [PATCH] Cleanup GHA --- .github/workflows/code-check.yml | 77 ------------------------------ .github/workflows/linux-x86-64.yml | 16 ------- .github/workflows/sanitize.yml | 44 ----------------- 3 files changed, 137 deletions(-) delete mode 100644 .github/workflows/code-check.yml delete mode 100644 .github/workflows/sanitize.yml diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml deleted file mode 100644 index ff680c820c..0000000000 --- a/.github/workflows/code-check.yml +++ /dev/null @@ -1,77 +0,0 @@ -#name: code-check -#on: -# workflow_dispatch: -# inputs: -# branch: -# description: 'LIEF branch' -# default: main -# required: false -# type: string -# what: -# description: 'clang-tidy action' -# default: latest -# required: false -# type: string -# job: -# description: 'Job (e.g. coverage)' -# default: "all" -# required: false -# type: string -# push: -# branches: -# - main -#jobs: -# coverage: -# runs-on: ubuntu-latest -# container: -# image: liefproject/code-check -# env: -# LIEF_S3_KEY: ${{ secrets.LIEF_S3_KEY }} -# LIEF_S3_SECRET: ${{ secrets.LIEF_S3_SECRET }} -# steps: -# - uses: actions/checkout@v4 -# with: -# repository: lief-project/code-check -# token: ${{ secrets.LIEF_CLONE_TOKEN }} -# - name: Running LIEF coverage [workflow dispatch] -# if: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.job == 'all' || github.event.inputs.job == 'coverage') }} -# run: ./lief-coverage --debug -# - name: Running LIEF coverage [regular] -# if: ${{ github.event_name != 'workflow_dispatch' }} -# run: ./lief-coverage --debug -# clang-tidy: -# runs-on: ubuntu-latest -# container: -# image: liefproject/code-check -# env: -# LIEF_S3_KEY: ${{ secrets.LIEF_S3_KEY }} -# LIEF_S3_SECRET: ${{ secrets.LIEF_S3_SECRET }} -# steps: -# - uses: actions/checkout@v4 -# with: -# repository: lief-project/code-check -# token: ${{ secrets.LIEF_CLONE_TOKEN }} -# - name: Running LIEF coverage [workflow dispatch] -# if: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.job == 'all' || github.event.inputs.job == 'clang-tidy') }} -# run: ./lief-tidy --branch ${{ github.event.inputs.branch }} ${{ github.event.inputs.what }} -# - name: Running LIEF coverage [regular] -# if: "github.event.name != 'workflow_dispatch'" -# run: ./lief-tidy latest -# memory-profiler: -# runs-on: ubuntu-latest -# container: -# image: liefproject/code-check -# env: -# LIEF_S3_KEY: ${{ secrets.LIEF_S3_KEY }} -# LIEF_S3_SECRET: ${{ secrets.LIEF_S3_SECRET }} -# steps: -# - uses: actions/checkout@v4 -# with: -# repository: lief-project/code-check -# token: ${{ secrets.LIEF_CLONE_TOKEN }} -# - name: Running LIEF memory profiler [workflow dispatch] -# if: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.job == 'all' || github.event.inputs.job == 'memprof') }} -# run: ./lief-memory-profile --branch ${{ github.event.inputs.branch }} -# - name: Running LIEF memory profiler [regular] -# if: "github.event.name != 'workflow_dispatch'" -# run: ./lief-memory-profile diff --git a/.github/workflows/linux-x86-64.yml b/.github/workflows/linux-x86-64.yml index c1698ac621..1efdf936cd 100644 --- a/.github/workflows/linux-x86-64.yml +++ b/.github/workflows/linux-x86-64.yml @@ -268,19 +268,3 @@ jobs: -e LIEF_S3_SECRET=$LIEF_S3_SECRET \ liefproject/deploy \ python3 /src/.github/deploy.py /runner_tmp/artifacts - #documentation: - # needs: [deploy] - # runs-on: ubuntu-latest - # container: - # image: liefproject/manylinux_2_28_x86_64 - # env: - # CIRCLE_CI_URL: "https://circleci.com/api/v2/project/gh/lief-project/doc/pipeline" - # CIRCLE_CI_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }} - # steps: - # - name: Trigger documentation - # if: github.ref == 'refs/heads/main' - # run: | - # curl --request POST --url ${CIRCLE_CI_URL} \ - # --header "Circle-Token: ${CIRCLE_CI_TOKEN}" \ - # --header 'content-type: application/json' \ - # --data '{"parameters":{"lief-branch":"main"}}' diff --git a/.github/workflows/sanitize.yml b/.github/workflows/sanitize.yml deleted file mode 100644 index ec8127f712..0000000000 --- a/.github/workflows/sanitize.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: 'sanitize' -on: workflow_dispatch - -jobs: - gcc: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: compile - shell: bash - run: | - docker run --rm \ - -e BUILD_DIR=/tmp/build_gcc \ - -e SRC_DIR=/src \ - -v $GITHUB_WORKSPACE:/src \ - liefproject/sanity:latest bash /src/scripts/docker/test-gcc - clang: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: compile - shell: bash - run: | - docker run --rm \ - -e BUILD_DIR=/tmp/build_clang \ - -e SRC_DIR=/src \ - -v $GITHUB_WORKSPACE:/src \ - liefproject/sanity:latest bash /src/scripts/docker/test-clang - asan: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: compile - shell: bash - run: | - docker run --rm \ - -v $GITHUB_WORKSPACE:/src \ - liefproject/sanity:latest bash /src/scripts/docker/test-asan