mirror of
https://github.com/vsariola/sointu.git
synced 2026-01-31 04:40:21 -05:00
ci: remove native synth from MacOS and compile arm64
This commit is contained in:
parent
9b87589f7b
commit
33ee80a908
22
.github/workflows/binaries.yml
vendored
22
.github/workflows/binaries.yml
vendored
@ -71,16 +71,15 @@ jobs:
|
||||
asmnasm: /Users/runner/nasm/nasm
|
||||
output: sointu-compile
|
||||
params: cmd/sointu-compile/main.go
|
||||
- os: macos-13
|
||||
- os: macos-latest
|
||||
asmnasm: /Users/runner/nasm/nasm
|
||||
output: sointu-track
|
||||
params: -tags=native cmd/sointu-track/main.go
|
||||
- os: macos-13
|
||||
params: cmd/sointu-track/main.go
|
||||
- os: macos-latest
|
||||
asmnasm: /Users/runner/nasm/nasm
|
||||
output: sointu-vsti.a
|
||||
bundleoutput: sointu-vsti
|
||||
MACOSX_DEPLOYMENT_TARGET: 11
|
||||
params: -buildmode=c-archive -tags="plugin,native" ./cmd/sointu-vsti/
|
||||
bundleoutput: sointu-vsti
|
||||
params: -buildmode=c-archive -tags="plugin" ./cmd/sointu-vsti/
|
||||
bundle: true
|
||||
steps:
|
||||
- uses: benjlevesque/short-sha@v3.0
|
||||
@ -102,16 +101,13 @@ jobs:
|
||||
if: runner.os == 'Linux'
|
||||
- name: Build library
|
||||
env:
|
||||
ASM_NASM: ${{ matrix.config.asmnasm }}
|
||||
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.config.MACOSX_DEPLOYMENT_TARGET }}
|
||||
ASM_NASM: ${{ matrix.config.asmnasm }}
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -GNinja ..
|
||||
ninja sointu
|
||||
- name: Build binary
|
||||
env:
|
||||
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.config.MACOSX_DEPLOYMENT_TARGET }}
|
||||
- name: Build binary
|
||||
run: |
|
||||
go build -ldflags "-X github.com/vsariola/sointu/version.Version=$(git describe) ${{ matrix.config.ldflags}}" -o ${{ matrix.config.output }} ${{ matrix.config.params }}
|
||||
- name: Upload binary
|
||||
@ -121,9 +117,7 @@ jobs:
|
||||
name: ${{ runner.os }}-${{ steps.short-sha.outputs.sha }}-${{ matrix.config.output }}
|
||||
path: ${{ matrix.config.output }}
|
||||
- name: Bundle VST
|
||||
if: matrix.config.bundle
|
||||
env:
|
||||
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.config.MACOSX_DEPLOYMENT_TARGET }}
|
||||
if: matrix.config.bundle
|
||||
run: | # following https://github.com/RustAudio/vst-rs/blob/master/osx_vst_bundler.sh
|
||||
mkdir -p "bundle/${{ matrix.config.bundleoutput }}.vst/Contents/MacOS"
|
||||
clang++ -D__MACOSX_CORE__ -framework CoreServices -framework CoreAudio -framework CoreMIDI -framework CoreFoundation -L./build/ -lsointu -bundle -o bundle/${{ matrix.config.bundleoutput }} -all_load ${{ matrix.config.output }}
|
||||
|
||||
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
@ -20,14 +20,17 @@ jobs:
|
||||
- os: ubuntu-latest
|
||||
asmnasm: /home/runner/nasm/nasm
|
||||
gotests: yes
|
||||
gotestcases: ./vm ./vm/compiler/bridge ./vm/compiler
|
||||
cgo_ldflags:
|
||||
- os: windows-latest
|
||||
asmnasm: C:\Users\runneradmin\nasm\nasm
|
||||
gotests: yes
|
||||
gotestcases: ./vm ./vm/compiler/bridge ./vm/compiler
|
||||
cgo_ldflags:
|
||||
- os: macos-13
|
||||
- os: macos-latest
|
||||
asmnasm: /Users/runner/nasm/nasm
|
||||
gotests: yes
|
||||
gotestcases: ./vm ./vm/compiler
|
||||
cgo_ldflags: # -Wl,-no_pie
|
||||
# ld on mac is complaining about position dependent code so this would take the errors away, BUT
|
||||
# suddenly this causes an error, even though worked last week. Let's accept the warnings rather
|
||||
@ -44,7 +47,7 @@ jobs:
|
||||
go-version: '>=1.21.0'
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '15'
|
||||
node-version: '22'
|
||||
- uses: ilammy/setup-nasm@v1.5.1
|
||||
- name: Run ctest
|
||||
env:
|
||||
@ -60,4 +63,4 @@ jobs:
|
||||
env:
|
||||
CGO_LDFLAGS: ${{ matrix.config.cgo_ldflags }}
|
||||
run: |
|
||||
go test ./vm ./vm/compiler/bridge ./vm/compiler
|
||||
go test ${{ matrix.config.gotestcases }}
|
||||
Reference in New Issue
Block a user