Add E2E chain write test leg for confidential workflows #119
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Verify wireguard-go-vsock Binary | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| push: | |
| branches: | |
| - 'release/**' | |
| jobs: | |
| verify-reproducible-build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: [amd64, arm64] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24.5' | |
| - name: Build wireguard-go-vsock from source | |
| run: | | |
| git clone https://github.com/seedcx/wireguard-go-vsock.git /tmp/wireguard-go-vsock | |
| cd /tmp/wireguard-go-vsock | |
| git checkout 5a4ddc8ae0ff255e7fd3ea25a0397ae55a66b956 | |
| CGO_ENABLED=0 GOOS=linux GOARCH=${{ matrix.arch }} go build -v -trimpath -ldflags="-s -w" -o "wireguard-go-vsock" | |
| - name: Verify reproducible build | |
| run: | | |
| echo "Comparing newly built ${{ matrix.arch }} binary with the one in the repository..." | |
| diff ./enclave/nitro/wireguard-go-vsock-${{ matrix.arch }} /tmp/wireguard-go-vsock/wireguard-go-vsock | |
| echo "Success: The pre-built ${{ matrix.arch }} binary is reproducible." |