build: add arm64 (#19)
This commit is contained in:
parent
9eb513ec12
commit
81704a19db
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@ -73,6 +73,7 @@ jobs:
|
|||||||
- Release
|
- Release
|
||||||
arch:
|
arch:
|
||||||
- x64
|
- x64
|
||||||
|
- arm64
|
||||||
include:
|
include:
|
||||||
- configuration: Debug
|
- configuration: Debug
|
||||||
config: debug
|
config: debug
|
||||||
@ -93,6 +94,23 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install libcurl4-gnutls-dev
|
sudo apt-get -y install libcurl4-gnutls-dev
|
||||||
|
|
||||||
|
- name: Install cross build tools (arm64)
|
||||||
|
if: matrix.arch == 'arm64'
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install crossbuild-essential-arm64
|
||||||
|
|
||||||
|
- name: Install dependencies (arm64)
|
||||||
|
if: matrix.arch == 'arm64'
|
||||||
|
run: |
|
||||||
|
echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy main multiverse universe" | sudo tee /etc/apt/sources.list
|
||||||
|
echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy-security main multiverse universe" | sudo tee -a /etc/apt/sources.list
|
||||||
|
echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy-backports main multiverse universe" | sudo tee -a /etc/apt/sources.list
|
||||||
|
echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy-updates main multiverse universe" | sudo tee -a /etc/apt/sources.list
|
||||||
|
sudo dpkg --add-architecture arm64
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install libcurl4-gnutls-dev:arm64
|
||||||
|
|
||||||
- name: Install Mold
|
- name: Install Mold
|
||||||
uses: rui314/setup-mold@staging
|
uses: rui314/setup-mold@staging
|
||||||
|
|
||||||
@ -107,6 +125,16 @@ jobs:
|
|||||||
- name: Set up problem matching
|
- name: Set up problem matching
|
||||||
uses: ammaraskar/gcc-problem-matcher@master
|
uses: ammaraskar/gcc-problem-matcher@master
|
||||||
|
|
||||||
|
- name: Set up CC environment variable
|
||||||
|
if: matrix.arch == 'arm64'
|
||||||
|
run: |
|
||||||
|
echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set up CXX environment variable
|
||||||
|
if: matrix.arch == 'arm64'
|
||||||
|
run: |
|
||||||
|
echo "CXX=aarch64-linux-gnu-g++" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build ${{matrix.configuration}} ${{matrix.arch}} binaries
|
- name: Build ${{matrix.configuration}} ${{matrix.arch}} binaries
|
||||||
run: |
|
run: |
|
||||||
pushd build
|
pushd build
|
||||||
|
@ -41,7 +41,7 @@ configurations {"Debug", "Release"}
|
|||||||
if os.istarget("darwin") then
|
if os.istarget("darwin") then
|
||||||
platforms {"x64"}
|
platforms {"x64"}
|
||||||
else
|
else
|
||||||
platforms {"x86", "x64"}
|
platforms {"x86", "x64", "arm64"}
|
||||||
end
|
end
|
||||||
|
|
||||||
filter "platforms:x86"
|
filter "platforms:x86"
|
||||||
|
Loading…
Reference in New Issue
Block a user