mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
ci: only build dylib on PRs with Go changes (#15839)
For some reason we were building the dylib on any code changes, now it's just Go (and CI) changes - using the same condition that `go-test` uses. `if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'` The main check ensures that it's always run before `build` is run.
This commit is contained in:
@@ -895,7 +895,7 @@ jobs:
|
||||
needs: changes
|
||||
# We always build the dylibs on Go changes to verify we're not merging unbuildable code,
|
||||
# but they need only be signed and uploaded on coder/coder main.
|
||||
if: needs.changes.outputs.docs-only == 'false' || github.ref == 'refs/heads/main'
|
||||
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
|
||||
runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest' }}
|
||||
steps:
|
||||
- name: Harden Runner
|
||||
|
||||
Reference in New Issue
Block a user