feat(ci): push some envs through artifact files in workflows
So that we could optimize away the need for the full git history.
This commit is contained in:
parent
d0dac25644
commit
08b2b36b87
|
@ -139,6 +139,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
make ensure-rebar3
|
make ensure-rebar3
|
||||||
make ${PROFILE}-compile test-compile
|
make ${PROFILE}-compile test-compile
|
||||||
|
echo "PROFILE=${PROFILE}" | tee -a .env
|
||||||
|
echo "PKG_VSN=$(./pkg-vsn.sh ${PROFILE})" | tee -a .env
|
||||||
zip -ryq -x@.github/workflows/.zipignore $PROFILE.zip .
|
zip -ryq -x@.github/workflows/.zipignore $PROFILE.zip .
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -217,8 +219,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
runner_labels: ${{ needs.sanity-checks.outputs.runner_labels }}
|
||||||
builder: ${{ needs.sanity-checks.outputs.builder }}
|
builder: ${{ needs.sanity-checks.outputs.builder }}
|
||||||
version-emqx: ${{ needs.sanity-checks.outputs.version-emqx }}
|
|
||||||
version-emqx-enterprise: ${{ needs.sanity-checks.outputs.version-emqx-enterprise }}
|
|
||||||
|
|
||||||
check_deps_integrity:
|
check_deps_integrity:
|
||||||
needs:
|
needs:
|
||||||
|
|
|
@ -149,6 +149,8 @@ jobs:
|
||||||
ENABLE_COVER_COMPILE: 1
|
ENABLE_COVER_COMPILE: 1
|
||||||
run: |
|
run: |
|
||||||
make $PROFILE
|
make $PROFILE
|
||||||
|
echo "PROFILE=${PROFILE}" | tee -a .env
|
||||||
|
echo "PKG_VSN=$(./pkg-vsn.sh ${PROFILE})" | tee -a .env
|
||||||
zip -ryq -x@.github/workflows/.zipignore $PROFILE.zip .
|
zip -ryq -x@.github/workflows/.zipignore $PROFILE.zip .
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -13,20 +13,11 @@ on:
|
||||||
builder:
|
builder:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
version-emqx:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
version-emqx-enterprise:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run_conf_tests:
|
run_conf_tests:
|
||||||
runs-on: ${{ fromJSON(inputs.runner_labels) }}
|
runs-on: ${{ fromJSON(inputs.runner_labels) }}
|
||||||
container: ${{ inputs.builder }}
|
container: ${{ inputs.builder }}
|
||||||
env:
|
|
||||||
PROFILE: ${{ matrix.profile }}
|
|
||||||
PKG_VSN: ${{ startsWith(matrix.profile, 'emqx-enterprise') && inputs.version-emqx-enterprise || inputs.version-emqx }}
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -41,6 +32,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: cat .env | tee -a $GITHUB_ENV
|
||||||
- run: make ${{ matrix.profile }}
|
- 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
|
||||||
|
|
|
@ -43,7 +43,6 @@ jobs:
|
||||||
key: rebar3-dialyzer-plt-${{ matrix.profile }}-${{ matrix.otp }}-${{ hashFiles('rebar.*', 'apps/*/rebar.*', 'lib-ee/*/rebar.*') }}
|
key: rebar3-dialyzer-plt-${{ matrix.profile }}-${{ matrix.otp }}-${{ hashFiles('rebar.*', 'apps/*/rebar.*', 'lib-ee/*/rebar.*') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
rebar3-dialyzer-plt-${{ matrix.profile }}-${{ matrix.otp }}-
|
rebar3-dialyzer-plt-${{ matrix.profile }}-${{ matrix.otp }}-
|
||||||
|
- run: cat .env | tee -a $GITHUB_ENV
|
||||||
- name: run static checks
|
- name: run static checks
|
||||||
env:
|
|
||||||
PROFILE: ${{ matrix.profile }}
|
|
||||||
run: make static_checks
|
run: make static_checks
|
||||||
|
|
Loading…
Reference in New Issue