Experiments with ccache, enable LTO for win32 build
This commit is contained in:
parent
ddb7f4b61c
commit
ae75e85f05
1 changed files with 10 additions and 1 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
@ -71,6 +71,7 @@ jobs:
|
|||
LDFLAGS: -static-libgcc -static-libstdc++
|
||||
PKG_CONFIG_PATH: /usr/lib/arm-linux-gnueabihf/pkgconfig
|
||||
run: |
|
||||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:${PATH}"
|
||||
make features
|
||||
make WITH_LTO=true -j $(nproc)
|
||||
- name: Set sha8
|
||||
|
@ -125,6 +126,9 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Set up ccache
|
||||
uses: hendrikmuhs/ccache-action@v1
|
||||
key: linux-x86_64
|
||||
- name: Set up dependencies
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
|
@ -133,6 +137,7 @@ jobs:
|
|||
env:
|
||||
LDFLAGS: -static-libgcc -static-libstdc++
|
||||
run: |
|
||||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:${PATH}"
|
||||
make features
|
||||
make WITH_LTO=true -j $(nproc)
|
||||
- name: Set sha8
|
||||
|
@ -215,12 +220,16 @@ jobs:
|
|||
run: |
|
||||
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*
|
||||
sudo xcode-select -s "/Applications/Xcode_12.3.app"
|
||||
- name: Set up ccache
|
||||
uses: hendrikmuhs/ccache-action@v1
|
||||
key: macOS-universal
|
||||
- name: Build macOS universal
|
||||
env:
|
||||
CFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2
|
||||
CXXFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2
|
||||
LDFLAGS: -arch x86_64 -arch arm64 -mmacosx-version-min=10.12
|
||||
run: |
|
||||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:${PATH}"
|
||||
make features
|
||||
make NOOPT=true WITH_LTO=true -j $(sysctl -n hw.logicalcpu)
|
||||
./dpf/utils/package-osx-bundles.sh
|
||||
|
@ -256,7 +265,7 @@ jobs:
|
|||
WINEDLLOVERRIDES: "mscoree,mshtml="
|
||||
run: |
|
||||
make features
|
||||
make -j $(nproc)
|
||||
make WITH_LTO=true -j $(nproc)
|
||||
- name: Set sha8
|
||||
id: slug
|
||||
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue