ci: clean before prepare and 'make' the default target

the eunit & proper step depends on a pre-built default target
This commit is contained in:
Zaiming (Stone) Shi 2022-11-30 09:45:56 +01:00
parent b398617614
commit 86e86c5a85
1 changed files with 6 additions and 4 deletions

View File

@ -22,6 +22,7 @@ jobs:
fast_ct_apps: ${{ steps.find_ct_apps.outputs.fast_ct_apps }}
docker_ct_apps: ${{ steps.find_ct_apps.outputs.docker_ct_apps }}
steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v3
with:
path: source
@ -42,8 +43,8 @@ jobs:
#DIAGNOSTIC: 1
run: |
make ensure-rebar3
# this will fetch all deps and compile
./rebar3 as test compile
# fetch all deps and compile
make
cd ..
zip -ryq source.zip source/* source/.[^.]*
- uses: actions/upload-artifact@v3
@ -56,6 +57,7 @@ jobs:
# prepare source with any OTP version, no need for a matrix
container: "ghcr.io/emqx/emqx-builder/5.0-18:1.13.4-24.3.4.2-1-ubuntu20.04"
steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v3
with:
path: source
@ -66,8 +68,8 @@ jobs:
#DIAGNOSTIC: 1
run: |
make ensure-rebar3
# this will fetch all deps and compile
./rebar3 as test compile
# fetch all deps and compile
make
cd ..
zip -ryq source.zip source/* source/.[^.]*
- uses: actions/upload-artifact@v3