@@ -340,6 +340,11 @@ jobs:
340
340
- name : Disable Spotlight Indexing
341
341
if : runner.os == 'macOS'
342
342
run : |
343
+ enabled=$(sudo mdutil -a -s | grep "Indexing enabled" | wc -l)
344
+ if [ $enabled -eq 0 ]; then
345
+ echo "Spotlight indexing is already disabled"
346
+ exit 0
347
+ fi
343
348
sudo mdutil -a -i off
344
349
sudo mdutil -X /
345
350
sudo launchctl bootout system /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
@@ -485,6 +490,12 @@ jobs:
485
490
gotestsum --format standard-quiet --packages "$PACKAGES" \
486
491
-- -timeout=20m -v -p $NUM_PARALLEL_PACKAGES -parallel=$NUM_PARALLEL_TESTS $TESTCOUNT
487
492
493
+ - name : Upload failed test db dumps
494
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
495
+ with :
496
+ name : failed-test-db-dump-${{matrix.os}}
497
+ path : " **/*.test.sql"
498
+
488
499
- name : Upload Go Build Cache
489
500
uses : ./.github/actions/test-cache/upload
490
501
with :
@@ -783,7 +794,7 @@ jobs:
783
794
# the check to pass. This is desired in PRs, but not in mainline.
784
795
- name : Publish to Chromatic (non-mainline)
785
796
if : github.ref != 'refs/heads/main' && github.repository_owner == 'coder'
786
- uses : chromaui/action@4d8ebd13658d795114f8051e25c28d66f14886c6 # v13.1.2
797
+ uses : chromaui/action@58d9ffb36c90c97a02d061544ecc849cc4a242a9 # v13.1.3
787
798
env :
788
799
NODE_OPTIONS : " --max_old_space_size=4096"
789
800
STORYBOOK : true
@@ -815,7 +826,7 @@ jobs:
815
826
# infinitely "in progress" in mainline unless we re-review each build.
816
827
- name : Publish to Chromatic (mainline)
817
828
if : github.ref == 'refs/heads/main' && github.repository_owner == 'coder'
818
- uses : chromaui/action@4d8ebd13658d795114f8051e25c28d66f14886c6 # v13.1.2
829
+ uses : chromaui/action@58d9ffb36c90c97a02d061544ecc849cc4a242a9 # v13.1.3
819
830
env :
820
831
NODE_OPTIONS : " --max_old_space_size=4096"
821
832
STORYBOOK : true
@@ -959,7 +970,7 @@ jobs:
959
970
- name : Switch XCode Version
960
971
uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
961
972
with :
962
- xcode-version : " 16.0 .0"
973
+ xcode-version : " 16.1 .0"
963
974
964
975
- name : Setup Go
965
976
uses : ./.github/actions/setup-go
@@ -1060,6 +1071,27 @@ jobs:
1060
1071
- name : Setup Go
1061
1072
uses : ./.github/actions/setup-go
1062
1073
1074
+ - name : Install rcodesign
1075
+ run : |
1076
+ set -euo pipefail
1077
+ wget -O /tmp/rcodesign.tar.gz https://github.com/indygreg/apple-platform-rs/releases/download/apple-codesign%2F0.22.0/apple-codesign-0.22.0-x86_64-unknown-linux-musl.tar.gz
1078
+ sudo tar -xzf /tmp/rcodesign.tar.gz \
1079
+ -C /usr/bin \
1080
+ --strip-components=1 \
1081
+ apple-codesign-0.22.0-x86_64-unknown-linux-musl/rcodesign
1082
+ rm /tmp/rcodesign.tar.gz
1083
+
1084
+ - name : Setup Apple Developer certificate
1085
+ run : |
1086
+ set -euo pipefail
1087
+ touch /tmp/{apple_cert.p12,apple_cert_password.txt}
1088
+ chmod 600 /tmp/{apple_cert.p12,apple_cert_password.txt}
1089
+ echo "$AC_CERTIFICATE_P12_BASE64" | base64 -d > /tmp/apple_cert.p12
1090
+ echo "$AC_CERTIFICATE_PASSWORD" > /tmp/apple_cert_password.txt
1091
+ env :
1092
+ AC_CERTIFICATE_P12_BASE64 : ${{ secrets.AC_CERTIFICATE_P12_BASE64 }}
1093
+ AC_CERTIFICATE_PASSWORD : ${{ secrets.AC_CERTIFICATE_PASSWORD }}
1094
+
1063
1095
# Necessary for signing Windows binaries.
1064
1096
- name : Setup Java
1065
1097
uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
@@ -1095,7 +1127,7 @@ jobs:
1095
1127
# Setup GCloud for signing Windows binaries.
1096
1128
- name : Authenticate to Google Cloud
1097
1129
id : gcloud_auth
1098
- uses : google-github-actions/auth@140bb5113ffb6b65a7e9b937a81fa96cf5064462 # v2.1.11
1130
+ uses : google-github-actions/auth@b7593ed2efd1c1617e1b0254da33b86225adb2a5 # v2.1.12
1099
1131
with :
1100
1132
workload_identity_provider : ${{ secrets.GCP_CODE_SIGNING_WORKLOAD_ID_PROVIDER }}
1101
1133
service_account : ${{ secrets.GCP_CODE_SIGNING_SERVICE_ACCOUNT }}
@@ -1138,6 +1170,9 @@ jobs:
1138
1170
CODER_WINDOWS_RESOURCES : " 1"
1139
1171
CODER_SIGN_GPG : " 1"
1140
1172
CODER_GPG_RELEASE_KEY_BASE64 : ${{ secrets.GPG_RELEASE_KEY_BASE64 }}
1173
+ CODER_SIGN_DARWIN : " 1"
1174
+ AC_CERTIFICATE_FILE : /tmp/apple_cert.p12
1175
+ AC_CERTIFICATE_PASSWORD_FILE : /tmp/apple_cert_password.txt
1141
1176
EV_KEY : ${{ secrets.EV_KEY }}
1142
1177
EV_KEYSTORE : ${{ secrets.EV_KEYSTORE }}
1143
1178
EV_TSA_URL : ${{ secrets.EV_TSA_URL }}
@@ -1396,7 +1431,7 @@ jobs:
1396
1431
fetch-depth : 0
1397
1432
1398
1433
- name : Authenticate to Google Cloud
1399
- uses : google-github-actions/auth@140bb5113ffb6b65a7e9b937a81fa96cf5064462 # v2.1.11
1434
+ uses : google-github-actions/auth@b7593ed2efd1c1617e1b0254da33b86225adb2a5 # v2.1.12
1400
1435
with :
1401
1436
workload_identity_provider : projects/573722524737/locations/global/workloadIdentityPools/github/providers/github
1402
1437
service_account :
[email protected]
0 commit comments