File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -117,14 +117,25 @@ jobs:
117117
118118 build-package :
119119 if : startsWith(github.ref, 'refs/tags/')
120- needs : [fmt, clippy, tests]
120+ needs : [compute-base-build-tag, fmt, clippy, tests]
121121 runs-on : ubuntu-latest
122+ container :
123+ image : ghcr.io/${{ github.repository }}/base:${{ needs.compute-base-build-tag.outputs.image_tag }}
122124 concurrency :
123125 group : ${{ github.workflow }}-${{ github.ref }}-build-package
124126 cancel-in-progress : true
125127 steps :
126128 - name : Checkout Repository
127129 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
130+ - name : Cache Cargo Target Directory
131+ uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
132+ with :
133+ path : target
134+ key : build-base-${{ needs.compute-base-build-tag.outputs.image_tag }}-${{ hashFiles('**/Cargo.lock') }}
135+ restore-keys : |
136+ build-base-${{ needs.compute-base-build-tag.outputs.image_tag }}-
137+ - name : Build release binary
138+ run : cargo build --release
128139 - name : Debian packaging
129140 env :
130141 PACKAGECLOUD_API_KEY : ${{ secrets.PACKAGECLOUD_API_KEY }}
You can’t perform that action at this time.
0 commit comments