|
49 | 49 | name: remoteAudio-${{ matrix.OS }}-${{ matrix.ARCH }}-${{ github.sha }} |
50 | 50 | path: ./release |
51 | 51 |
|
52 | | - build_macos: |
| 52 | + build_macos_arm64: |
53 | 53 | runs-on: macos-latest |
54 | | - strategy: |
55 | | - matrix: |
56 | | - version: ['darwin-amd64', 'darwin-arm64'] |
57 | | - include: |
58 | | - - version: darwin-amd64 |
59 | | - OS: darwin |
60 | | - ARCH: amd64 |
61 | | - - version: darwin-arm64 |
62 | | - OS: darwin |
63 | | - ARCH: arm64 |
64 | 54 | steps: |
65 | 55 | - name: Set up Go $GOVERSION |
66 | 56 | uses: actions/setup-go@v5 |
|
93 | 83 | - name: Stash the build artifact |
94 | 84 | uses: actions/upload-artifact@v4 |
95 | 85 | with: |
96 | | - name: remoteAudio-${{ matrix.OS }}-${{ matrix.ARCH }}-${{ github.sha }} |
| 86 | + name: remoteAudio-darwin-arm64-${{ github.sha }} |
| 87 | + path: ./release |
| 88 | + |
| 89 | + build_macos_amd64: |
| 90 | + runs-on: macos-latest-large |
| 91 | + steps: |
| 92 | + - name: Set up Go $GOVERSION |
| 93 | + uses: actions/setup-go@v5 |
| 94 | + id: go |
| 95 | + with: |
| 96 | + go-version: ${{ env.GOVERSION }} |
| 97 | + - uses: actions/checkout@v4 |
| 98 | + with: |
| 99 | + submodules: true |
| 100 | + - name: Install dependencies |
| 101 | + run: | |
| 102 | + brew install pkg-config |
| 103 | + brew install opus |
| 104 | + brew install opusfile |
| 105 | + brew install portaudio |
| 106 | + brew install protobuf |
| 107 | + brew install libsamplerate |
| 108 | + brew install upx |
| 109 | + - name: Install code generators |
| 110 | + run: make install-deps |
| 111 | + - name: Build binary for macOS |
| 112 | + run: | |
| 113 | + export PATH=/System/Volumes/Data/Users/runner/go/bin:$PATH |
| 114 | + make dist |
| 115 | + - name: Prepare build artifact for stashing |
| 116 | + run: | |
| 117 | + mkdir release |
| 118 | + mv ./remoteAudio ./release |
| 119 | + # The build artifact can be identified by the trailing sha of the git commit |
| 120 | + - name: Stash the build artifact |
| 121 | + uses: actions/upload-artifact@v4 |
| 122 | + with: |
| 123 | + name: remoteAudio-darwin-amd64-${{ github.sha }} |
97 | 124 | path: ./release |
98 | 125 |
|
99 | 126 | build_windows: |
@@ -138,7 +165,7 @@ jobs: |
138 | 165 | # In this job we upload the release artifacts to the corresponding release |
139 | 166 | create_release_and_upload: |
140 | 167 | runs-on: ubuntu-24.04 |
141 | | - needs: [build_linux, build_macos, build_windows] |
| 168 | + needs: [build_linux, build_macos_arm64, build_macos_amd64, build_windows] |
142 | 169 | if: startsWith(github.ref, 'refs/tags/v') |
143 | 170 | strategy: |
144 | 171 | matrix: |
|
0 commit comments