Browse Source

Static linux builds; try linux-arm64

master
falkTX 1 year ago
parent
commit
394cbe6cf8
1 changed files with 28 additions and 2 deletions
  1. +28
    -2
      .github/workflows/build.yml

+ 28
- 2
.github/workflows/build.yml View File

@@ -11,6 +11,30 @@ env:
DEBIAN_FRONTEND: noninteractive

jobs:
linux-arm64:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up dependencies
run: |
sudo dpkg --add-architecture arm64 && \
sudo apt-get update -qq && \
sudo apt-get install -yq libasound2-dev:arm64 libgl1-mesa-dev:arm64 liblo-dev:arm64 libpulse-dev:arm64
- name: Build linux arm64 cross-compiled
env:
CC: aarch64-linux-gnu-gcc
CXX: aarch64-linux-gnu-g++
LDFLAGS: -static-libgcc -static-libstdc++
run: |
make
- uses: actions/upload-artifact@v2
with:
name: linux arm64
path: |
bin/*

linux-x64:
runs-on: ubuntu-18.04
steps:
@@ -20,7 +44,9 @@ jobs:
- name: Set up dependencies
run: |
sudo apt-get install -yq libasound2-dev libgl1-mesa-dev liblo-dev libpulse-dev
- name: Build Linux x64
- name: Build linux x64
env:
LDFLAGS: -static-libgcc -static-libstdc++
run: |
make
- uses: actions/upload-artifact@v2
@@ -39,7 +65,7 @@ jobs:
run: |
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
sudo xcode-select -s "/Applications/Xcode_12.3.app"
- name: Build macOS
- name: Build macOS universal
env:
CFLAGS: -mtune=generic -msse -msse2 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -arch x86_64 -arch arm64
CXXFLAGS: -mtune=generic -msse -msse2 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -arch x86_64 -arch arm64


Loading…
Cancel
Save