mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
Feature: Build ARM64 (Apple Silicon) version for macOS
This commit is contained in:
parent
bbc96fd37c
commit
fec5ce093f
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@ -366,8 +366,10 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- arch: x64
|
- arch: x64
|
||||||
full_arch: x86_64
|
full_arch: x86_64
|
||||||
|
- arch: arm64
|
||||||
|
full_arch: arm64
|
||||||
|
|
||||||
runs-on: macos-11.0
|
runs-on: macos-10.15
|
||||||
env:
|
env:
|
||||||
MACOSX_DEPLOYMENT_TARGET: 10.9
|
MACOSX_DEPLOYMENT_TARGET: 10.9
|
||||||
|
|
||||||
@ -381,11 +383,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
tar -xf source.tar.gz --strip-components=1
|
tar -xf source.tar.gz --strip-components=1
|
||||||
|
|
||||||
|
# The following step can be removed and the default vcpkg installation
|
||||||
|
# (/usr/local/share/vcpkg) restored when the build VM is updated with a revision of
|
||||||
|
# vcpkg dating from roughly 01/01/2021 or later.
|
||||||
|
- name: Update vcpkg
|
||||||
|
run: |
|
||||||
|
cd /tmp
|
||||||
|
git clone https://github.com/Microsoft/vcpkg
|
||||||
|
|
||||||
- name: Prepare vcpkg (with cache)
|
- name: Prepare vcpkg (with cache)
|
||||||
uses: lukka/run-vcpkg@v6
|
uses: lukka/run-vcpkg@v6
|
||||||
with:
|
with:
|
||||||
vcpkgDirectory: '/usr/local/share/vcpkg'
|
vcpkgDirectory: '/tmp/vcpkg'
|
||||||
doNotUpdateVcpkg: true
|
doNotUpdateVcpkg: false
|
||||||
|
vcpkgGitCommitId: 2a42024b53ebb512fb5dd63c523338bf26c8489c
|
||||||
vcpkgArguments: 'freetype liblzma lzo'
|
vcpkgArguments: 'freetype liblzma lzo'
|
||||||
vcpkgTriplet: '${{ matrix.arch }}-osx'
|
vcpkgTriplet: '${{ matrix.arch }}-osx'
|
||||||
|
|
||||||
@ -418,7 +429,7 @@ jobs:
|
|||||||
cmake ${GITHUB_WORKSPACE} \
|
cmake ${GITHUB_WORKSPACE} \
|
||||||
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.full_arch }} \
|
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.full_arch }} \
|
||||||
-DVCPKG_TARGET_TRIPLET=${{ matrix.arch }}-osx \
|
-DVCPKG_TARGET_TRIPLET=${{ matrix.arch }}-osx \
|
||||||
-DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake \
|
-DCMAKE_TOOLCHAIN_FILE=/tmp/vcpkg/scripts/buildsystems/vcpkg.cmake \
|
||||||
-DHOST_BINARY_DIR=${GITHUB_WORKSPACE}/build-host \
|
-DHOST_BINARY_DIR=${GITHUB_WORKSPACE}/build-host \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
# EOF
|
# EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user