From 419b80d11e7f449a9168fd1490bac7670d8efc2f Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Thu, 12 Oct 2023 01:26:35 +0700 Subject: [PATCH] chore(ci): try to reduce CI artifacts footprint To speed up uploads and downloads in dependent jobs. --- .github/workflows/.zipignore | 3 +++ .github/workflows/_pr_entrypoint.yaml | 5 ++--- .github/workflows/_push-entrypoint.yaml | 2 +- .github/workflows/run_conf_tests.yaml | 1 + 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/.zipignore diff --git a/.github/workflows/.zipignore b/.github/workflows/.zipignore new file mode 100644 index 000000000..d72c7ba23 --- /dev/null +++ b/.github/workflows/.zipignore @@ -0,0 +1,3 @@ +.git/* +*/.git/* +*/.github/* diff --git a/.github/workflows/_pr_entrypoint.yaml b/.github/workflows/_pr_entrypoint.yaml index f2688d8d1..8fc19c1aa 100644 --- a/.github/workflows/_pr_entrypoint.yaml +++ b/.github/workflows/_pr_entrypoint.yaml @@ -138,9 +138,8 @@ jobs: ENABLE_COVER_COMPILE: 1 run: | make ensure-rebar3 - make ${PROFILE} - make test-compile - zip -ryq $PROFILE.zip . + make ${PROFILE}-compile test-compile + zip -ryq -x@.github/workflows/.zipignore $PROFILE.zip . - uses: actions/upload-artifact@v3 with: name: ${{ matrix.profile }} diff --git a/.github/workflows/_push-entrypoint.yaml b/.github/workflows/_push-entrypoint.yaml index a8a01fb45..19c25fa2d 100644 --- a/.github/workflows/_push-entrypoint.yaml +++ b/.github/workflows/_push-entrypoint.yaml @@ -149,7 +149,7 @@ jobs: ENABLE_COVER_COMPILE: 1 run: | make $PROFILE - zip -ryq $PROFILE.zip . + zip -ryq -x@.github/workflows/.zipignore $PROFILE.zip . - uses: actions/upload-artifact@v3 with: name: ${{ matrix.profile }} diff --git a/.github/workflows/run_conf_tests.yaml b/.github/workflows/run_conf_tests.yaml index a69746d76..813aa663b 100644 --- a/.github/workflows/run_conf_tests.yaml +++ b/.github/workflows/run_conf_tests.yaml @@ -34,6 +34,7 @@ jobs: run: | unzip -o -q ${{ matrix.profile }}.zip git config --global --add safe.directory "$GITHUB_WORKSPACE" + - run: make ${{ matrix.profile }} - run: ./scripts/test/check-example-configs.sh - run: ./scripts/conf-test/run.sh - name: print erlang log