From b3182609c3a215ad98899f0c9a6c8f5010bdbecc Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Thu, 16 Jun 2022 13:07:27 +0200 Subject: [PATCH] ci: delete dpes cache from github work-flows --- .github/workflows/build_slim_packages.yaml | 28 ---------------------- .github/workflows/run_emqx_app_tests.yaml | 10 -------- .github/workflows/run_fvt_tests.yaml | 27 --------------------- .github/workflows/run_relup_tests.yaml | 12 ---------- scripts/get-dep-refs.sh | 10 -------- 5 files changed, 87 deletions(-) delete mode 100755 scripts/get-dep-refs.sh diff --git a/.github/workflows/build_slim_packages.yaml b/.github/workflows/build_slim_packages.yaml index 2f94a1c01..6f3ae2bf7 100644 --- a/.github/workflows/build_slim_packages.yaml +++ b/.github/workflows/build_slim_packages.yaml @@ -50,19 +50,6 @@ jobs: run: | echo "EMQX_NAME=${{ matrix.profile }}" >> $GITHUB_ENV echo "CODE_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV - - name: Get deps git refs for cache - id: deps-refs - run: | - git config --global --add safe.directory "/__w/emqx/emqx" - scripts/get-dep-refs.sh - make clean-all - - name: load quicer cache - uses: actions/cache@v2 - with: - path: | - _build/default/lib/quicer/ - deps/quicer/ - key: ${{ matrix.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-amd64-${{ steps.deps-refs.outputs.DEP_QUICER_REF }} - name: Work around https://github.com/actions/checkout/issues/766 run: | git config --global --add safe.directory "$GITHUB_WORKSPACE" @@ -171,21 +158,6 @@ jobs: kerl update releases kerl build ${{ matrix.otp }} kerl install ${{ matrix.otp }} $HOME/.kerl/${{ matrix.otp }} - - name: Get deps git refs for cache - id: deps-refs - env: - AUTO_INSTALL_BUILD_DEPS: 1 - run: | - . $HOME/.kerl/${{ matrix.otp }}/activate - make ensure-rebar3 - sudo cp rebar3 /usr/local/bin/rebar3 - scripts/get-dep-refs.sh - make clean-all - - name: load quicer cache - uses: actions/cache@v2 - with: - path: _build/default/lib/quicer/ - key: ${{ matrix.macos }}-${{ matrix.otp }}-macos-${{ steps.deps-refs.outputs.DEP_QUICER_REF }} - name: build ${{ matrix.profile }} env: AUTO_INSTALL_BUILD_DEPS: 1 diff --git a/.github/workflows/run_emqx_app_tests.yaml b/.github/workflows/run_emqx_app_tests.yaml index 6ff5894cc..7539d6d8b 100644 --- a/.github/workflows/run_emqx_app_tests.yaml +++ b/.github/workflows/run_emqx_app_tests.yaml @@ -34,16 +34,6 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Get deps git refs for cache - id: deps-refs - run: | - PATH=$PATH:./ scripts/get-dep-refs.sh - make clean-all - - name: load quicer cache - uses: actions/cache@v2 - with: - path: _build/default/lib/quicer/ - key: ${{ matrix.os }}-${{ matrix.otp }}-${{ matrix.arch }}-${{ steps.deps-refs.outputs.DEP_QUICER_REF }} - name: run run: | git config --global --add safe.directory "$GITHUB_WORKSPACE" diff --git a/.github/workflows/run_fvt_tests.yaml b/.github/workflows/run_fvt_tests.yaml index d5fbc32b6..94eeb10b0 100644 --- a/.github/workflows/run_fvt_tests.yaml +++ b/.github/workflows/run_fvt_tests.yaml @@ -65,21 +65,6 @@ jobs: - name: unzip source code run: unzip -q source.zip - - name: Get deps git refs for cache - id: deps-refs - run: | - cd source - make ensure-rebar3 - sudo cp rebar3 /usr/local/bin/rebar3 - scripts/get-dep-refs.sh - - name: load quicer cache - uses: actions/cache@v2 - with: - path: | - source/_build/default/lib/quicer/ - source/deps/quicer/ - key: ${{ matrix.os[0] }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.arch }}-${{ steps.deps-refs.outputs.DEP_QUICER_REF }} - - name: make docker image working-directory: source env: @@ -148,18 +133,6 @@ jobs: path: . - name: unzip source code run: unzip -q source.zip - - name: Get deps git refs for cache - id: deps-refs - run: | - cd source - make ensure-rebar3 - sudo cp rebar3 /usr/local/bin/rebar3 - scripts/get-dep-refs.sh - - name: load quicer cache - uses: actions/cache@v2 - with: - path: source/_build/default/lib/quicer/ - key: ${{ matrix.os[0] }}-${{ matrix.otp }}-${{ matrix.arch }}-${{ steps.deps-refs.outputs.DEP_QUICER_REF }} - name: make docker image working-directory: source diff --git a/.github/workflows/run_relup_tests.yaml b/.github/workflows/run_relup_tests.yaml index bcd72a729..b14e6a7ce 100644 --- a/.github/workflows/run_relup_tests.yaml +++ b/.github/workflows/run_relup_tests.yaml @@ -72,18 +72,6 @@ jobs: - name: Get old vsn run: echo "OLD_VSNS=$(emqx/scripts/relup-base-vsns.sh ${{ matrix.profile }} | xargs echo -n)" >> $GITHUB_ENV - - name: Get deps git refs for cache - id: deps-refs - run: | - cd emqx - scripts/get-dep-refs.sh - - - name: load quicer cache - uses: actions/cache@v2 - with: - path: emqx/_build/default/lib/quicer/ - key: ${{ matrix.os }}-${{ matrix.otp }}-${{ matrix.arch }}-${{ steps.deps-refs.outputs.DEP_QUICER_REF }} - - name: build emqx env: PROFILE: ${{ matrix.profile }} diff --git a/scripts/get-dep-refs.sh b/scripts/get-dep-refs.sh deleted file mode 100755 index 4a32aa069..000000000 --- a/scripts/get-dep-refs.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -get_ref() { - local APP=$1 - #echo "{ok,Raw}=file:consult(\"rebar.lock\"), {_Vsn, Deps}=hd(Raw), {_, {git, _Url, {ref, Ref}},_} = lists:keyfind(<<\"${APP}\">>,1, Deps), io:format(\"~s\",[Ref]), init:stop()." - erl -noshell -eval "{ok,Raw}=file:consult(\"rebar.lock\"), {_Vsn, Deps}=hd(Raw), {_, {git, _Url, {ref, Ref}},_} = lists:keyfind(<<\"${APP}\">>,1, Deps), io:format(\"~s\",[Ref]), init:stop()." -} - -rebar3 get-deps -echo "::set-output name=DEP_QUICER_REF::$(get_ref quicer)"