@@ -4,7 +4,7 @@ on: # rebuild any PRs and main branch changes
44 pull_request :
55 push :
66 branches :
7- - master
7+ - main
88
99permissions :
1010 contents : read
@@ -17,7 +17,7 @@ concurrency:
1717jobs :
1818 build-and-lint :
1919 name : " Format, docs, and lint"
20- timeout-minutes : ${{ github.ref == 'refs/heads/master ' && 15 || 10 }}
20+ timeout-minutes : ${{ github.ref == 'refs/heads/main ' && 15 || 10 }}
2121 runs-on : ubuntu-latest
2222 steps :
2323 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3333 - run : rustup component add rustfmt clippy
3434 - uses : Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
3535 with :
36- save-if : ${{ github.ref == 'refs/heads/master ' }}
36+ save-if : ${{ github.ref == 'refs/heads/main ' }}
3737 - run : cargo fmt --all --check
3838 - run : cargo doc --workspace --all-features --no-deps
3939 env :
4646 test :
4747 name : Unit Tests
4848 # Give extra time to ensure pushes to main have time to populate the cache
49- timeout-minutes : ${{ matrix.timeoutMinutes || (github.ref == 'refs/heads/master ' && 20 || 15) }}
49+ timeout-minutes : ${{ matrix.timeoutMinutes || (github.ref == 'refs/heads/main ' && 20 || 15) }}
5050 strategy :
5151 fail-fast : false
5252 matrix :
8282 core.exportVariable('RUSTFLAGS', '-Csymbol-mangling-version=v0');
8383 - uses : Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
8484 with :
85- save-if : ${{ github.ref == 'refs/heads/master ' }}
85+ save-if : ${{ github.ref == 'refs/heads/main ' }}
8686 - run : cargo test -- --include-ignored --nocapture
8787 - name : Find test executable for cgroup tests
8888 id : find-cgroup-test
@@ -107,7 +107,7 @@ jobs:
107107
108108 msrv :
109109 name : " Verify MSRV"
110- timeout-minutes : ${{ github.ref == 'refs/heads/master ' && 15 || 10 }}
110+ timeout-minutes : ${{ github.ref == 'refs/heads/main ' && 15 || 10 }}
111111 runs-on : ubuntu-latest
112112 steps :
113113 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -123,7 +123,7 @@ jobs:
123123 - run : rustup component add rustfmt clippy
124124 - uses : Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
125125 with :
126- save-if : ${{ github.ref == 'refs/heads/master ' }}
126+ save-if : ${{ github.ref == 'refs/heads/main ' }}
127127 key : msrv
128128 - run : cargo install cargo-msrv
129129 - run : cargo msrv verify
@@ -150,7 +150,7 @@ jobs:
150150
151151 integ-tests :
152152 name : Integ tests
153- timeout-minutes : ${{ github.ref == 'refs/heads/master ' && 30 || 25 }}
153+ timeout-minutes : ${{ github.ref == 'refs/heads/main ' && 30 || 25 }}
154154 strategy :
155155 fail-fast : false
156156 matrix :
@@ -185,18 +185,18 @@ jobs:
185185 core.exportVariable('RUSTFLAGS', '-Csymbol-mangling-version=v0');
186186 - uses : Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
187187 with :
188- save-if : ${{ github.ref == 'refs/heads/master ' }}
188+ save-if : ${{ github.ref == 'refs/heads/main ' }}
189189 - run : cargo integ-test
190190
191191 cloud-tests :
192- if : github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-core '
192+ if : github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-rust '
193193 name : Cloud tests
194194 env :
195195 TEMPORAL_CLOUD_ADDRESS : https://${{ vars.TEMPORAL_CLIENT_NAMESPACE }}.tmprl.cloud:7233
196196 TEMPORAL_NAMESPACE : ${{ vars.TEMPORAL_CLIENT_NAMESPACE }}
197197 TEMPORAL_CLIENT_CERT : ${{ secrets.TEMPORAL_CLIENT_CERT }}
198198 TEMPORAL_CLIENT_KEY : ${{ secrets.TEMPORAL_CLIENT_KEY }}
199- timeout-minutes : ${{ github.ref == 'refs/heads/master ' && 25 || 20 }}
199+ timeout-minutes : ${{ github.ref == 'refs/heads/main ' && 25 || 20 }}
200200 runs-on : ubuntu-latest
201201 steps :
202202 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -210,7 +210,7 @@ jobs:
210210
211211 - uses : Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
212212 with :
213- save-if : ${{ github.ref == 'refs/heads/master ' }}
213+ save-if : ${{ github.ref == 'refs/heads/main ' }}
214214 - run : cargo test --features=test-utilities --test cloud_tests
215215
216216 docker-integ-tests :
@@ -221,7 +221,7 @@ jobs:
221221 TEMPORAL_CLIENT_CERT : ${{ secrets.TEMPORAL_CLIENT_CERT }}
222222 TEMPORAL_CLIENT_KEY : ${{ secrets.TEMPORAL_CLIENT_KEY }}
223223 DOCKER_PROMETHEUS_RUNNING : true
224- timeout-minutes : ${{ github.ref == 'refs/heads/master ' && 25 || 20 }}
224+ timeout-minutes : ${{ github.ref == 'refs/heads/main ' && 25 || 20 }}
225225 runs-on : ubuntu-latest
226226 steps :
227227 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -238,7 +238,7 @@ jobs:
238238 compose-file : ./etc/docker/docker-compose-ci.yaml
239239 - uses : Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
240240 with :
241- save-if : ${{ github.ref == 'refs/heads/master ' }}
241+ save-if : ${{ github.ref == 'refs/heads/main ' }}
242242 - run : cargo integ-test docker_
243243
244244 examples :
@@ -255,7 +255,7 @@ jobs:
255255 repo-token : ${{ secrets.GITHUB_TOKEN }}
256256 - uses : Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
257257 with :
258- save-if : ${{ github.ref == 'refs/heads/master ' }}
258+ save-if : ${{ github.ref == 'refs/heads/main ' }}
259259 - name : Build examples
260260 run : cargo build --examples -p temporalio-sdk --features examples
261261 - name : Install Temporal CLI
0 commit comments