Skip to content

Commit 5606aaf

Browse files
committed
CI: FIPS build
1 parent dae0b95 commit 5606aaf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release-dd.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
arch: [amd64, arm64]
6060
env:
6161
DOCKER: false
62+
GOFIPS140: v1.0.0
6263
steps:
6364
- uses: actions/checkout@v4
6465
- name: Setup Golang
@@ -71,6 +72,13 @@ jobs:
7172
make -e GOARCH=${{ matrix.arch }} contrib-release
7273
sudo mv contrib/nydusify/cmd/nydusify .
7374
sudo mv contrib/nydus-overlayfs/bin/nydus-overlayfs .
75+
- name: verify FIPS build info
76+
run: |
77+
for bin in nydusify nydus-overlayfs; do
78+
echo "Checking $bin"
79+
go version -m "$bin" | grep -q 'GOFIPS140=v1.0.0' \
80+
|| { echo "ERROR: $bin not built with GOFIPS140=v1.0.0"; exit 1; }
81+
done
7482
- name: store-artifacts
7583
uses: actions/upload-artifact@v4
7684
with:

0 commit comments

Comments
 (0)