1212 build :
1313 runs-on : ubuntu-latest
1414 needs : generate_infos
15- strategy :
16- matrix :
17- arch : ["amd64", "arm64"]
1815 steps :
1916 - run : export
2017 - name : Checkout code
@@ -25,38 +22,25 @@ jobs:
2522 uses : actions/setup-go@v3
2623 with :
2724 go-version : 1.19
28- - name : Setup awesome-ci
29- uses : fullstack-devops/awesome-ci-action@main
3025
31- - name : Build "${{ matrix.arch }}"
32- run : make
33- env :
34- GOOS : linux
35- GOARCH : " ${{ matrix.arch }}"
26+ - name : Build
27+ run : make VERSION="${{ needs.generate_infos.outputs.version }}"
3628
37- - name : Test "${{ matrix.arch }}"
38- if : matrix.arch == 'amd64'
29+ - name : Test
3930 run : make test
4031
4132 - name : debugging git
42- if : matrix.arch == 'amd64'
4333 run : |
4434 echo "git name-rev HEAD: $(git name-rev HEAD)"
4535 echo "git log -1 --pretty=format:"%s": $(git log -1 --pretty=format:"%s")"
4636 echo "git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@': $(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')"
4737
4838 - name : test build Infos
49- id : test-build-infos
50- if : matrix.arch == 'amd64'
51- run : build/package/awesome-ci_* pr info -n ${{ github.event.pull_request.number }} -v > $GITHUB_STEP_SUMMARY
39+ run : build/package/awesome-ci_${{ needs.generate_infos.outputs.version }}_amd64 pr info -n ${{ github.event.pull_request.number }} -v > $GITHUB_STEP_SUMMARY
5240 env :
5341 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5442 - name : test env file
55- if : matrix.arch == 'amd64'
5643 run : export | grep ACI_
57- - name : test step export function
58- if : matrix.arch == 'amd64'
59- run : echo "${{ steps.test-build-infos.outputs.ACI_PR_BRANCH }}"
6044
6145 - name : Cache build outputs
6246 uses : actions/cache@v3
@@ -65,25 +49,15 @@ jobs:
6549 with :
6650 path : build/package/
6751 key : awesome-ci-${{ github.event.pull_request.head.sha }}-${{ hashFiles('build/package/awesome-ci*') }}
68- enableCrossOsArchive : true
6952 restore-keys : |
7053 awesome-ci-${{ github.event.pull_request.head.sha }}
7154
72- # - name: Integration testing
73- # run: ./tools/test.sh ./out/awesome-ci_${ACI_NEXT_VERSION}_${{ matrix.arch }}
74- # env:
75- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
7755 create_release_test :
7856 runs-on : ubuntu-latest
7957 needs : [generate_infos, build]
8058 steps :
8159 - name : Checkout code
8260 uses : actions/checkout@v3
83- - name : Setup awesome-ci
84- uses : fullstack-devops/awesome-ci-action@main
85-
86- - run : echo "${{ needs.build.steps.test-build-infos.outputs.ACI_PR_BRANCH }}"
8761
8862 - name : get cached build outputs
8963 uses : actions/cache@v3
0 commit comments