mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
CI: add builds for linux and macos (closes #82)
This commit is contained in:
parent
4135286ed0
commit
6ec06c760a
48
.github/workflows/binaries.yml
vendored
48
.github/workflows/binaries.yml
vendored
@ -17,35 +17,52 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
cmakeflags: -GNinja
|
|
||||||
maker: ninja
|
|
||||||
asmnasm: C:\Users\runneradmin\nasm\nasm
|
asmnasm: C:\Users\runneradmin\nasm\nasm
|
||||||
output: sointu-track.exe
|
output: sointu-track.exe
|
||||||
params: -ldflags -H=windowsgui cmd/sointu-track/main.go
|
params: -ldflags -H=windowsgui cmd/sointu-track/main.go
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
cmakeflags: -GNinja
|
|
||||||
maker: ninja
|
|
||||||
asmnasm: C:\Users\runneradmin\nasm\nasm
|
asmnasm: C:\Users\runneradmin\nasm\nasm
|
||||||
output: sointu-compile.exe
|
output: sointu-compile.exe
|
||||||
params: cmd/sointu-compile/main.go
|
params: cmd/sointu-compile/main.go
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
cmakeflags: -GNinja
|
|
||||||
maker: ninja
|
|
||||||
asmnasm: C:\Users\runneradmin\nasm\nasm
|
asmnasm: C:\Users\runneradmin\nasm\nasm
|
||||||
output: sointu-track-native.exe
|
output: sointu-track-native.exe
|
||||||
params: -ldflags -H=windowsgui -tags=native cmd/sointu-track/main.go
|
params: -ldflags -H=windowsgui -tags=native cmd/sointu-track/main.go
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
cmakeflags: -GNinja
|
|
||||||
maker: ninja
|
|
||||||
asmnasm: C:\Users\runneradmin\nasm\nasm
|
asmnasm: C:\Users\runneradmin\nasm\nasm
|
||||||
output: sointu-vsti.dll
|
output: sointu-vsti.dll
|
||||||
params: -buildmode=c-shared -tags=plugin ./cmd/sointu-vsti/
|
params: -buildmode=c-shared -tags=plugin ./cmd/sointu-vsti/
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
cmakeflags: -GNinja
|
|
||||||
maker: ninja
|
|
||||||
asmnasm: C:\Users\runneradmin\nasm\nasm
|
asmnasm: C:\Users\runneradmin\nasm\nasm
|
||||||
output: sointu-vsti-native.dll
|
output: sointu-vsti-native.dll
|
||||||
params: -buildmode=c-shared -tags="plugin,native" ./cmd/sointu-vsti/
|
params: -buildmode=c-shared -tags="plugin,native" ./cmd/sointu-vsti/
|
||||||
|
- os: ubuntu-latest
|
||||||
|
asmnasm: /home/runner/nasm/nasm
|
||||||
|
output: sointu-track
|
||||||
|
params: cmd/sointu-track/main.go
|
||||||
|
packages: libegl-dev libvulkan-dev libxkbcommon-x11-dev libwayland-dev libasound2-dev libx11-xcb-dev libxcursor-dev libxfixes-dev
|
||||||
|
- os: ubuntu-latest
|
||||||
|
asmnasm: /home/runner/nasm/nasm
|
||||||
|
output: sointu-compile
|
||||||
|
params: cmd/sointu-compile/main.go
|
||||||
|
packages: libegl-dev libvulkan-dev libxkbcommon-x11-dev libwayland-dev libasound2-dev libx11-xcb-dev libxcursor-dev libxfixes-dev
|
||||||
|
- os: ubuntu-latest
|
||||||
|
asmnasm: /home/runner/nasm/nasm
|
||||||
|
output: sointu-track-native
|
||||||
|
params: -tags=native cmd/sointu-track/main.go
|
||||||
|
packages: libegl-dev libvulkan-dev libxkbcommon-x11-dev libwayland-dev libasound2-dev libx11-xcb-dev libxcursor-dev libxfixes-dev
|
||||||
|
- os: macos-latest
|
||||||
|
asmnasm: /Users/runner/nasm/nasm
|
||||||
|
output: sointu-track
|
||||||
|
params: cmd/sointu-track/main.go
|
||||||
|
- os: macos-latest
|
||||||
|
asmnasm: /Users/runner/nasm/nasm
|
||||||
|
output: sointu-compile
|
||||||
|
params: cmd/sointu-compile/main.go
|
||||||
|
- os: macos-latest
|
||||||
|
asmnasm: /Users/runner/nasm/nasm
|
||||||
|
output: sointu-track-native
|
||||||
|
params: -tags=native cmd/sointu-track/main.go
|
||||||
steps:
|
steps:
|
||||||
- uses: benjlevesque/short-sha@v2.2
|
- uses: benjlevesque/short-sha@v2.2
|
||||||
id: short-sha
|
id: short-sha
|
||||||
@ -55,19 +72,24 @@ jobs:
|
|||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: ilammy/setup-nasm@v1.4.0
|
- uses: ilammy/setup-nasm@v1.4.0
|
||||||
|
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
|
with:
|
||||||
|
packages: ${{ matrix.config.packages }}
|
||||||
|
version: 1.0
|
||||||
|
if: runner.os == 'Linux'
|
||||||
- name: Build library
|
- name: Build library
|
||||||
env:
|
env:
|
||||||
ASM_NASM: ${{ matrix.config.asmnasm }}
|
ASM_NASM: ${{ matrix.config.asmnasm }}
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ${{ matrix.config.cmakeflags }} ..
|
cmake -GNinja ..
|
||||||
${{ matrix.config.maker }} sointu
|
ninja sointu
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
run: |
|
run: |
|
||||||
go build -o ${{ matrix.config.output }} ${{ matrix.config.params }}
|
go build -o ${{ matrix.config.output }} ${{ matrix.config.params }}
|
||||||
- name: Upload binary
|
- name: Upload binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: sointu-binaries-${{ steps.short-sha.outputs.sha }}
|
name: sointu-${{ runner.os }}-${{ steps.short-sha.outputs.sha }}
|
||||||
path: ${{ matrix.config.output }}
|
path: ${{ matrix.config.output }}
|
@ -1,5 +1,6 @@
|
|||||||
# Sointu
|
# Sointu
|
||||||

|

|
||||||
|

|
||||||
|
|
||||||
A cross-architecture and cross-platform modular software synthesizer for small
|
A cross-architecture and cross-platform modular software synthesizer for small
|
||||||
intros, forked from [4klang](https://github.com/hzdgopher/4klang). Targetable
|
intros, forked from [4klang](https://github.com/hzdgopher/4klang). Targetable
|
||||||
@ -8,6 +9,10 @@ Windows, Mac, Linux (and related) + browser.
|
|||||||
|
|
||||||
User manual will be in the [Wiki](https://github.com/vsariola/sointu/wiki).
|
User manual will be in the [Wiki](https://github.com/vsariola/sointu/wiki).
|
||||||
|
|
||||||
|
Download prebuilt binaries from the [here](https://github.com/vsariola/sointu/actions)
|
||||||
|
(find workflow "Binaries" and scroll down for .zip files containing the
|
||||||
|
artifacts.)
|
||||||
|
|
||||||
Summary
|
Summary
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user