Procházet zdrojové kódy

chore(ci): try to reduce CI artifacts footprint

To speed up uploads and downloads in dependent jobs.
Andrew Mayorov před 2 roky
rodič
revize
419b80d11e

+ 3 - 0
.github/workflows/.zipignore

@@ -0,0 +1,3 @@
+.git/*
+*/.git/*
+*/.github/*

+ 2 - 3
.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 }}

+ 1 - 1
.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 }}

+ 1 - 0
.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