Skip to content

Commit 21b469d

Browse files
authored
Merge pull request #5 from helium/macpie/fix_build
Fix build-package
2 parents 2618acf + c555b4c commit 21b469d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)