|
2 | 2 | name: Nightly (master)
|
3 | 3 | on:
|
4 | 4 | schedule:
|
5 |
| - - cron: "0 23 1 * *" |
6 |
| - - cron: "0 23 2-31 * *" |
| 5 | + - cron: "0 23 * * *" |
7 | 6 | workflow_dispatch:
|
8 | 7 | inputs:
|
9 | 8 | git_sha:
|
10 | 9 | description: Override Emacs git commit SHA to build
|
11 | 10 | required: false
|
| 11 | + x86_64: |
| 12 | + description: "Build x86_64 version of Emacs" |
| 13 | + required: false |
| 14 | + default: true |
| 15 | + type: boolean |
12 | 16 | arm64:
|
13 |
| - description: "Build arm64 version of Emacs?" |
| 17 | + description: "Build arm64 version of Emacs" |
14 | 18 | required: false
|
15 |
| - default: false |
| 19 | + default: true |
16 | 20 | type: boolean
|
17 | 21 |
|
18 | 22 | jobs:
|
19 |
| - prepare: |
20 |
| - name: Prepare |
21 |
| - uses: ./.github/workflows/_prepare.yml |
22 |
| - secrets: |
23 |
| - TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }} |
24 |
| - |
25 |
| - # ---------------------------------------------------------------------------- |
26 |
| - # Build x86_64 version of Emacs |
27 |
| - # ---------------------------------------------------------------------------- |
28 |
| - |
29 |
| - build_x86_64: |
30 |
| - name: Build (x86_64) |
31 |
| - uses: ./.github/workflows/_build.yml |
32 |
| - needs: [prepare] |
33 |
| - with: |
34 |
| - build_os: "macos-13" |
35 |
| - artifact_prefix: "x86_64-" |
36 |
| - git_ref: "master" |
37 |
| - git_sha: ${{ github.event.inputs.git_sha }} |
38 |
| - secrets: |
39 |
| - APPLE_DEVELOPER_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }} |
40 |
| - APPLE_DEVELOPER_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }} |
41 |
| - KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} |
42 |
| - AC_USERNAME: ${{ secrets.AC_USERNAME }} |
43 |
| - AC_PASSWORD: ${{ secrets.AC_PASSWORD }} |
44 |
| - AC_PROVIDER: ${{ secrets.AC_PROVIDER }} |
45 |
| - AC_SIGN_IDENTITY: ${{ secrets.AC_SIGN_IDENTITY }} |
46 |
| - TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }} |
47 |
| - |
48 |
| - release_x86_64: |
49 |
| - name: Release (x86_64) |
50 |
| - uses: ./.github/workflows/_release.yml |
51 |
| - # Depend on both build_x86_64 and build_arm64, but only run if build_x86_64 |
52 |
| - # was successful and a package was created. This ensure wait for all builds |
53 |
| - # to complete before running any release jobs. |
54 |
| - needs: [build_x86_64, build_arm64] |
55 |
| - if: | |
56 |
| - always() && |
57 |
| - needs.build_x86_64.result == 'success' && |
58 |
| - needs.build_x86_64.outputs.package_created && |
59 |
| - needs.build_arm64.result != 'failure' |
| 23 | + build: |
| 24 | + name: Build |
| 25 | + uses: ./.github/workflows/build.yml |
60 | 26 | with:
|
61 |
| - plan_artifact: x86_64-build-plan |
62 |
| - dmg_artifact: x86_64-dmg |
63 |
| - secrets: |
64 |
| - TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }} |
65 |
| - |
66 |
| - # ---------------------------------------------------------------------------- |
67 |
| - # Build arm64 version of Emacs |
68 |
| - # ---------------------------------------------------------------------------- |
69 |
| - |
70 |
| - build_arm64: |
71 |
| - name: Build (arm64) |
72 |
| - if: >- |
73 |
| - github.event.inputs.arm64 == 'true' || |
74 |
| - github.event.schedule == '0 23 1 * *' |
75 |
| - uses: ./.github/workflows/_build.yml |
76 |
| - needs: [prepare] |
77 |
| - with: |
78 |
| - build_os: "macos-13-xlarge" # Only macos-13-xlarge has arm64 support. |
79 |
| - artifact_prefix: "arm64-" |
80 | 27 | git_ref: "master"
|
81 |
| - git_sha: ${{ github.event.inputs.git_sha }} |
82 |
| - secrets: |
83 |
| - APPLE_DEVELOPER_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }} |
84 |
| - APPLE_DEVELOPER_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }} |
85 |
| - KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} |
86 |
| - AC_USERNAME: ${{ secrets.AC_USERNAME }} |
87 |
| - AC_PASSWORD: ${{ secrets.AC_PASSWORD }} |
88 |
| - AC_PROVIDER: ${{ secrets.AC_PROVIDER }} |
89 |
| - AC_SIGN_IDENTITY: ${{ secrets.AC_SIGN_IDENTITY }} |
90 |
| - TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }} |
91 |
| - |
92 |
| - release_arm64: |
93 |
| - name: Release (arm64) |
94 |
| - uses: ./.github/workflows/_release.yml |
95 |
| - # Depend on both build_arm64 and build_x86_64, but only run if build_arm64 |
96 |
| - # was successful and a package was created. This ensure wait for all builds |
97 |
| - # to complete before running any release jobs. |
98 |
| - needs: [build_arm64, build_x86_64] |
99 |
| - if: | |
100 |
| - always() && |
101 |
| - needs.build_arm64.result == 'success' && |
102 |
| - needs.build_arm64.outputs.package_created && |
103 |
| - needs.build_x86_64.result != 'failure' |
104 |
| - with: |
105 |
| - plan_artifact: arm64-build-plan |
106 |
| - dmg_artifact: arm64-dmg |
107 |
| - secrets: |
108 |
| - TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }} |
109 |
| - |
110 |
| - # ---------------------------------------------------------------------------- |
111 |
| - # Trigger update casks workflow in homebrew tap |
112 |
| - # ---------------------------------------------------------------------------- |
113 |
| - |
114 |
| - update_casks: |
115 |
| - name: Update Casks |
116 |
| - uses: ./.github/workflows/_update-casks.yml |
117 |
| - # Depend on both release jobs, but only run if either of them was |
118 |
| - # successful. This ensures we only run this job once all release jobs have |
119 |
| - # been completed. |
120 |
| - needs: [release_x86_64, release_arm64] |
121 |
| - if: >- |
122 |
| - always() && |
123 |
| - github.event.inputs.test_build_name == '' && |
124 |
| - contains(needs.*.result, 'success') && |
125 |
| - !contains(needs.*.result, 'failure') |
126 |
| - secrets: |
127 |
| - TAP_REPO_TOKEN: ${{ secrets.TAP_REPO_TOKEN }} |
| 28 | + git_sha: ${{ inputs.git_sha }} |
| 29 | + x86_64: ${{ inputs.x86_64 }} |
| 30 | + arm64: ${{ inputs.arm64 }} |
| 31 | + test_build_name: "nightly-test" |
| 32 | + test_release_type: "draft" |
| 33 | + secrets: inherit |
0 commit comments