mirror of
https://github.com/alterware/master-server.git
synced 2025-05-09 14:04:54 +00:00
build: add Linux arm64 (#89)
This commit is contained in:
parent
3f1d78ec10
commit
028bd4a44b
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -85,6 +85,7 @@ jobs:
|
|||||||
arch:
|
arch:
|
||||||
- x86
|
- x86
|
||||||
- x64
|
- x64
|
||||||
|
- arm64
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files
|
- name: Check out files
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
@ -94,6 +95,12 @@ jobs:
|
|||||||
# NOTE - If LFS ever starts getting used during builds, switch this to true!
|
# NOTE - If LFS ever starts getting used during builds, switch this to true!
|
||||||
lfs: false
|
lfs: false
|
||||||
|
|
||||||
|
- name: Install dependencies (arm64)
|
||||||
|
if: matrix.arch == 'arm64'
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install crossbuild-essential-arm64 -y
|
||||||
|
|
||||||
- name: Install dependencies (x86)
|
- name: Install dependencies (x86)
|
||||||
if: matrix.arch == 'x86'
|
if: matrix.arch == 'x86'
|
||||||
run: |
|
run: |
|
||||||
@ -115,6 +122,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.arch}} ${{matrix.configuration}} binaries
|
- name: Build ${{matrix.arch}} ${{matrix.configuration}} binaries
|
||||||
run: |
|
run: |
|
||||||
pushd build
|
pushd build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user