mirror of
https://github.com/diamante0018/master-tool.git
synced 2025-04-20 11:45:43 +00:00
build: linux attempt arm64 without mold
This commit is contained in:
parent
7f5d7fa7fa
commit
0b172ce174
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -88,9 +88,6 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install crossbuild-essential-arm64
|
sudo apt-get -y install crossbuild-essential-arm64
|
||||||
|
|
||||||
- name: Install Mold
|
|
||||||
uses: rui314/setup-mold@staging
|
|
||||||
|
|
||||||
- name: Install Premake5
|
- name: Install Premake5
|
||||||
uses: abel0b/setup-premake@v2.2
|
uses: abel0b/setup-premake@v2.2
|
||||||
with:
|
with:
|
||||||
@ -102,20 +99,13 @@ 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
|
||||||
make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc)
|
make config=${{matrix.config}}_${{matrix.arch}} -j$(nproc)
|
||||||
|
env:
|
||||||
|
CC: clang
|
||||||
|
CXX: clang++
|
||||||
|
|
||||||
- name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries
|
- name: Upload ${{matrix.configuration}} ${{matrix.arch}} binaries
|
||||||
uses: actions/upload-artifact@v3.1.2
|
uses: actions/upload-artifact@v3.1.2
|
||||||
|
21
premake5.lua
21
premake5.lua
@ -74,17 +74,24 @@ editandcontinue "Off"
|
|||||||
warnings "Extra"
|
warnings "Extra"
|
||||||
characterset "ASCII"
|
characterset "ASCII"
|
||||||
|
|
||||||
if os.istarget("linux") or os.istarget("darwin") then
|
filter { "system:linux", "system:macosx" }
|
||||||
buildoptions "-pthread"
|
buildoptions "-pthread"
|
||||||
linkoptions "-pthread"
|
linkoptions "-pthread"
|
||||||
|
filter {}
|
||||||
|
|
||||||
|
if os.istarget("linux") then
|
||||||
|
filter { "platforms:arm64" }
|
||||||
|
buildoptions "--target=arm64-linux-gnu"
|
||||||
|
linkoptions "--target=arm64-linux-gnu"
|
||||||
|
filter {}
|
||||||
|
|
||||||
|
linkoptions "-fuse-ld=lld"
|
||||||
end
|
end
|
||||||
|
|
||||||
if os.istarget("darwin") then
|
filter { "system:macosx", "platforms:arm64" }
|
||||||
filter "platforms:arm64"
|
buildoptions "-arch arm64"
|
||||||
buildoptions "-arch arm64"
|
linkoptions "-arch arm64"
|
||||||
linkoptions "-arch arm64"
|
filter {}
|
||||||
filter {}
|
|
||||||
end
|
|
||||||
|
|
||||||
if os.getenv("CI") then
|
if os.getenv("CI") then
|
||||||
defines "CI"
|
defines "CI"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user