Skip to content

Commit bcab6b6

Browse files
author
Tobias Wellnitz, DH1TW
committed
ci: added seperate build for darwin-amd64
1 parent e4e64a1 commit bcab6b6

File tree

1 file changed

+40
-13
lines changed

1 file changed

+40
-13
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,8 @@ jobs:
4949
name: remoteAudio-${{ matrix.OS }}-${{ matrix.ARCH }}-${{ github.sha }}
5050
path: ./release
5151

52-
build_macos:
52+
build_macos_arm64:
5353
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
6454
steps:
6555
- name: Set up Go $GOVERSION
6656
uses: actions/setup-go@v5
@@ -93,7 +83,44 @@ jobs:
9383
- name: Stash the build artifact
9484
uses: actions/upload-artifact@v4
9585
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 }}
97124
path: ./release
98125

99126
build_windows:
@@ -138,7 +165,7 @@ jobs:
138165
# In this job we upload the release artifacts to the corresponding release
139166
create_release_and_upload:
140167
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]
142169
if: startsWith(github.ref, 'refs/tags/v')
143170
strategy:
144171
matrix:

0 commit comments

Comments
 (0)