chore(ci): try to reduce CI artifacts footprint

To speed up uploads and downloads in dependent jobs.
This commit is contained in:
Andrew Mayorov 2023-10-12 01:26:35 +07:00
parent b1a3bc8565
commit 419b80d11e
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
4 changed files with 7 additions and 4 deletions

3
.github/workflows/.zipignore vendored Normal file
View File

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

View File

@ -138,9 +138,8 @@ jobs:
ENABLE_COVER_COMPILE: 1 ENABLE_COVER_COMPILE: 1
run: | run: |
make ensure-rebar3 make ensure-rebar3
make ${PROFILE} make ${PROFILE}-compile test-compile
make test-compile zip -ryq -x@.github/workflows/.zipignore $PROFILE.zip .
zip -ryq $PROFILE.zip .
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.profile }} name: ${{ matrix.profile }}

View File

@ -149,7 +149,7 @@ jobs:
ENABLE_COVER_COMPILE: 1 ENABLE_COVER_COMPILE: 1
run: | run: |
make $PROFILE make $PROFILE
zip -ryq $PROFILE.zip . zip -ryq -x@.github/workflows/.zipignore $PROFILE.zip .
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.profile }} name: ${{ matrix.profile }}

View File

@ -34,6 +34,7 @@ jobs:
run: | run: |
unzip -o -q ${{ matrix.profile }}.zip unzip -o -q ${{ matrix.profile }}.zip
git config --global --add safe.directory "$GITHUB_WORKSPACE" git config --global --add safe.directory "$GITHUB_WORKSPACE"
- run: make ${{ matrix.profile }}
- run: ./scripts/test/check-example-configs.sh - run: ./scripts/test/check-example-configs.sh
- run: ./scripts/conf-test/run.sh - run: ./scripts/conf-test/run.sh
- name: print erlang log - name: print erlang log