ci: build and test go-wayland-bindings against this revision
- commit
- a911eab3249d618fce65ddfca582483b452f0051
- author
- brice · · 2026-10-01 05:55 UTC
- parent
- 048fbd6
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
1 file · +29 -0
M .github/workflows/ci.yml +29 -0
| @@ -22,3 +22,32 @@ jobs: | |||
| 22 | 22 | run: go run honnef.co/go/tools/cmd/staticcheck@latest ./... | |
| 23 | 23 | - name: Test (race) | |
| 24 | 24 | run: go test -race -count=1 ./... | |
| 25 | + | ||
| 26 | + | # Downstream: the generated bindings must still build and pass against this | |
| 27 | + | # revision of wlturbo. | |
| 28 | + | bindings: | |
| 29 | + | runs-on: ubuntu-latest | |
| 30 | + | permissions: | |
| 31 | + | contents: read | |
| 32 | + | steps: | |
| 33 | + | - uses: actions/checkout@v4 | |
| 34 | + | with: | |
| 35 | + | path: wlturbo | |
| 36 | + | persist-credentials: false | |
| 37 | + | - uses: actions/checkout@v4 | |
| 38 | + | with: | |
| 39 | + | repository: bnema/go-wayland-bindings | |
| 40 | + | ref: main | |
| 41 | + | path: bindings | |
| 42 | + | persist-credentials: false | |
| 43 | + | - uses: actions/setup-go@v5 | |
| 44 | + | with: | |
| 45 | + | go-version-file: bindings/go.mod | |
| 46 | + | - name: Build and test bindings against this wlturbo | |
| 47 | + | working-directory: bindings | |
| 48 | + | run: | | |
| 49 | + | go mod edit -replace github.com/bnema/wlturbo=../wlturbo | |
| 50 | + | go mod tidy | |
| 51 | + | CGO_ENABLED=0 go build ./... | |
| 52 | + | go vet ./client/... | |
| 53 | + | CGO_ENABLED=0 go test ./client/... | |
| @@ -22,3 +22,32 @@ jobs: | |||||
| 22 | run: go run honnef.co/go/tools/cmd/staticcheck@latest ./... | 22 | run: go run honnef.co/go/tools/cmd/staticcheck@latest ./... | ||
| 23 | - name: Test (race) | 23 | - name: Test (race) | ||
| 24 | run: go test -race -count=1 ./... | 24 | run: go test -race -count=1 ./... | ||
| 25 | + | ||||
| 26 | + | # Downstream: the generated bindings must still build and pass against this | |||
| 27 | + | # revision of wlturbo. | |||
| 28 | + | bindings: | |||
| 29 | + | runs-on: ubuntu-latest | |||
| 30 | + | permissions: | |||
| 31 | + | contents: read | |||
| 32 | + | steps: | |||
| 33 | + | - uses: actions/checkout@v4 | |||
| 34 | + | with: | |||
| 35 | + | path: wlturbo | |||
| 36 | + | persist-credentials: false | |||
| 37 | + | - uses: actions/checkout@v4 | |||
| 38 | + | with: | |||
| 39 | + | repository: bnema/go-wayland-bindings | |||
| 40 | + | ref: main | |||
| 41 | + | path: bindings | |||
| 42 | + | persist-credentials: false | |||
| 43 | + | - uses: actions/setup-go@v5 | |||
| 44 | + | with: | |||
| 45 | + | go-version-file: bindings/go.mod | |||
| 46 | + | - name: Build and test bindings against this wlturbo | |||
| 47 | + | working-directory: bindings | |||
| 48 | + | run: | | |||
| 49 | + | go mod edit -replace github.com/bnema/wlturbo=../wlturbo | |||
| 50 | + | go mod tidy | |||
| 51 | + | CGO_ENABLED=0 go build ./... | |||
| 52 | + | go vet ./client/... | |||
| 53 | + | CGO_ENABLED=0 go test ./client/... | |||