Skip to content

Commit

Permalink
fix: reduce macosx build size #40
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxianpeng committed Jan 24, 2025
1 parent 0c301b4 commit 37d2b69
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
shacmd: 'sha512sum'
- os: macosx
runner: macos-14
os-cmake-args: '-DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto" -DCMAKE_OSX_DEPLOYMENT_TARGET=11 ${MACOS_CMAKE_ARGS}'
os-cmake-args: '-DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto -ffunction-sections -fdata-sections" -DCMAKE_OSX_DEPLOYMENT_TARGET=11 ${MACOS_CMAKE_ARGS}'
build-args: '-j$(sysctl -n hw.ncpu)'
bindir: '/build/bin'
dotexe: ''
Expand Down Expand Up @@ -173,9 +173,9 @@ jobs:
cat clang-apply-replacements-${{ env.suffix }}.sha512sum
- name: upload artifacts
if: ${{ github.actor != 'dependabot[bot]' }} || github.event_name != 'pull_request'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: clang-tools
name: clang-tools-${{ matrix.release }}-${{ env.suffix }}
path: "${{ matrix.release }}${{ matrix.bindir }}/clang-*-${{ env.suffix }}*"
retention-days: 1
draft-release:
Expand All @@ -184,9 +184,7 @@ jobs:
needs: build
steps:
- name: download artifacts
uses: actions/download-artifact@v3
with:
name: clang-tools
uses: actions/download-artifact@v4
- name: list files
run: ls -laR .
- name: draft release
Expand Down

0 comments on commit 37d2b69

Please sign in to comment.