|
|
@@ -25,7 +25,7 @@ jobs: |
|
|
|
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports bionic-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-arm64.list && \ |
|
|
|
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports bionic-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-arm64.list && \ |
|
|
|
sudo apt-get update -qq && \ |
|
|
|
sudo apt-get install -yq libasound2-dev:arm64 libgl1-mesa-dev:arm64 liblo-dev:arm64 libpulse-dev:arm64 |
|
|
|
sudo apt-get install -yq g++-aarch64-linux-gnu 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 |
|
|
@@ -39,6 +39,34 @@ jobs: |
|
|
|
path: | |
|
|
|
bin/* |
|
|
|
|
|
|
|
linux-armhf: |
|
|
|
runs-on: ubuntu-18.04 |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v2 |
|
|
|
with: |
|
|
|
submodules: recursive |
|
|
|
- name: Set up dependencies |
|
|
|
run: | |
|
|
|
sudo dpkg --add-architecture armhf && \ |
|
|
|
sudo sed -i "s/deb http/deb [arch=amd64] http/" /etc/apt/sources.list && \ |
|
|
|
echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/ports-armhf.list && \ |
|
|
|
echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports bionic-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-armhf.list && \ |
|
|
|
echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports bionic-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ports-armhf.list && \ |
|
|
|
sudo apt-get update -qq && \ |
|
|
|
sudo apt-get install -yq g++-arm-linux-gnueabihf libasound2-dev:armhf libgl1-mesa-dev:armhf liblo-dev:armhf libpulse-dev:armhf |
|
|
|
- name: Build linux armhf cross-compiled |
|
|
|
env: |
|
|
|
CC: arm-linux-gnueabihf-gcc |
|
|
|
CXX: arm-linux-gnueabihf-g++ |
|
|
|
LDFLAGS: -static-libgcc -static-libstdc++ |
|
|
|
run: | |
|
|
|
make |
|
|
|
- uses: actions/upload-artifact@v2 |
|
|
|
with: |
|
|
|
name: linux armhf |
|
|
|
path: | |
|
|
|
bin/* |
|
|
|
|
|
|
|
linux-x64: |
|
|
|
runs-on: ubuntu-18.04 |
|
|
|
steps: |
|
|
|