|
6 | 6 | - neovim-v[0-9]+.[0-9]+.[0-9]+-* |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - macos: |
10 | | - strategy: |
11 | | - fail-fast: true |
12 | | - matrix: |
13 | | - runner: [ macos-15-intel, macos-15 ] |
14 | | - include: |
15 | | - - runner: macos-15-intel |
16 | | - arch: x86_64 |
17 | | - - runner: macos-15 |
18 | | - arch: arm64 |
19 | | - runs-on: ${{ matrix.runner }} |
| 9 | + build-x86: |
| 10 | + runs-on: macos-15-intel |
20 | 11 | steps: |
21 | 12 | - uses: actions/checkout@v4 |
22 | 13 | with: |
23 | | - # Perform a full checkout #13471 |
24 | 14 | fetch-depth: 0 |
25 | 15 | submodules: true |
26 | | - - name: Install dependencies |
27 | | - run: brew bundle |
28 | | - |
29 | | - - name: Build neovim |
30 | | - run: clean=true ./bin/neovim/bin/build_neovim.sh |
| 16 | + - run: brew bundle |
| 17 | + - run: clean=true ./bin/neovim/bin/build_neovim.sh |
| 18 | + - uses: actions/upload-artifact@v4 |
| 19 | + with: |
| 20 | + name: nvim-macos-x86_64 |
| 21 | + path: Neovim/build/nvim-macos-x86_64.tar.gz |
| 22 | + retention-days: 1 |
31 | 23 |
|
| 24 | + build-arm: |
| 25 | + runs-on: macos-15 |
| 26 | + steps: |
| 27 | + - uses: actions/checkout@v4 |
| 28 | + with: |
| 29 | + fetch-depth: 0 |
| 30 | + submodules: true |
| 31 | + - run: brew bundle |
| 32 | + - run: clean=true ./bin/neovim/bin/build_neovim.sh |
32 | 33 | - uses: actions/upload-artifact@v4 |
33 | 34 | with: |
34 | | - name: nvim-macos-${{ matrix.arch }} |
35 | | - path: Neovim/build/nvim-macos-${{ matrix.arch }}.tar.gz |
| 35 | + name: nvim-macos-arm64 |
| 36 | + path: Neovim/build/nvim-macos-arm64.tar.gz |
36 | 37 | retention-days: 1 |
37 | 38 |
|
38 | 39 | publish: |
39 | | - needs: [macos] |
| 40 | + needs: [build-x86, build-arm] |
40 | 41 | runs-on: macos-15 |
41 | | - env: |
42 | | - GH_REPO: ${{ github.repository }} |
43 | | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
44 | 42 | permissions: |
45 | 43 | contents: write |
46 | 44 | steps: |
47 | | - # Must perform checkout first, since it deletes the target directory |
48 | | - # before running, and would therefore delete the downloaded artifacts |
49 | 45 | - uses: actions/checkout@v4 |
50 | 46 | with: |
51 | 47 | fetch-depth: 0 |
52 | | - |
53 | 48 | - uses: actions/download-artifact@v4 |
54 | | - |
55 | | - - name: Install dependencies |
56 | | - run: brew bundle |
57 | | - |
58 | | - - name: Set tag name env |
59 | | - run: | |
60 | | - TAG_NAME=${{ github.ref }} |
61 | | - echo "TAG_NAME=${TAG_NAME#refs/tags/}" >> $GITHUB_ENV |
62 | | -
|
63 | | - - name: Move downloaded artifacts |
64 | | - run: | |
65 | | - mv nvim-macos-x86_64/* . |
66 | | - mv nvim-macos-arm64/* . |
67 | | - rm -r nvim-macos-x86_64 |
68 | | - rm -r nvim-macos-arm64 |
69 | | -
|
70 | | - - name: Create universal Neovim |
71 | | - run: ./bin/neovim/bin/build_universal_neovim.sh |
72 | | - |
73 | | - # Set as prerelease such that the latest VimR release is marked as the latest stable release |
74 | | - - name: Publish release |
75 | | - run: | |
76 | | - gh release create $TAG_NAME \ |
77 | | - --prerelease \ |
78 | | - --title "Universal ${TAG_NAME}" \ |
79 | | - --notes "Neovim universal build with `libintl`, not signed." \ |
80 | | - --target $GITHUB_SHA nvim-macos-x86_64.tar.gz nvim-macos-arm64.tar.gz nvim-macos-universal.tar.bz |
| 49 | + - run: brew bundle |
| 50 | + - run: | |
| 51 | + mv nvim-macos-*/* . |
| 52 | + rm -r nvim-macos-x86_64 nvim-macos-arm64 |
| 53 | + - run: ./bin/neovim/bin/build_universal_neovim.sh |
| 54 | + - run: | |
| 55 | + gh release create ${{ github.ref_name }} \ |
| 56 | + --prerelease \ |
| 57 | + --title "Universal ${{ github.ref_name }}" \ |
| 58 | + --notes "Neovim universal build with libintl, not signed." \ |
| 59 | + --target ${{ github.sha }} \ |
| 60 | + nvim-macos-x86_64.tar.gz nvim-macos-arm64.tar.gz nvim-macos-universal.tar.bz |
| 61 | + env: |
| 62 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments